Don't import IoError on nu-plugin-core without local-socket (#16279)

When you use `nu-plugin-core` without the `local-socket` feature, you
got the warning:
<img width="1182" height="353" alt="image"
src="https://github.com/user-attachments/assets/dd80af11-4963-4d48-8c93-43e6c2dabafa"
/>

This PR fixes that warning.
This commit is contained in:
Piepmatz
2025-07-28 20:10:17 +02:00
committed by sholderbach
parent 27865b9415
commit c4fed5ea84

View File

@ -3,6 +3,7 @@ use std::io::{Stdin, Stdout};
use std::process::{Child, ChildStdin, ChildStdout, Command, Stdio};
use nu_protocol::ShellError;
#[cfg(feature = "local-socket")] // unused without that feature
use nu_protocol::shell_error::io::IoError;
#[cfg(feature = "local-socket")]