mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:05:40 +02:00
Refactor: Construct IoError
from std::io::Error
instead of std::io::ErrorKind
(#15777)
This commit is contained in:
@ -66,7 +66,7 @@ pub(crate) fn spawn_fake_plugin(
|
||||
.spawn(move || manager.consume_all(output_read).expect("Plugin read error"))
|
||||
.map_err(|err| {
|
||||
IoError::new_internal(
|
||||
err.kind(),
|
||||
err,
|
||||
format!("Could not spawn fake plugin interface reader ({name})"),
|
||||
nu_protocol::location!(),
|
||||
)
|
||||
@ -87,7 +87,7 @@ pub(crate) fn spawn_fake_plugin(
|
||||
})
|
||||
.map_err(|err| {
|
||||
IoError::new_internal(
|
||||
err.kind(),
|
||||
err,
|
||||
format!("Could not spawn fake plugin runner ({name})"),
|
||||
nu_protocol::location!(),
|
||||
)
|
||||
|
Reference in New Issue
Block a user