mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 14:38:57 +02:00
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:
@ -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")]
|
||||
|
Reference in New Issue
Block a user