mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 08:40:14 +02:00
Refactor: Construct IoError
from std::io::Error
instead of std::io::ErrorKind
(#15777)
This commit is contained in:
@ -134,7 +134,7 @@ fn byte_stream_to_bits(stream: ByteStream, head: Span) -> ByteStream {
|
||||
let mut byte = [0];
|
||||
if reader
|
||||
.read(&mut byte[..])
|
||||
.map_err(|err| IoError::new(err.kind(), head, None))?
|
||||
.map_err(|err| IoError::new(err, head, None))?
|
||||
> 0
|
||||
{
|
||||
// Format the byte as bits
|
||||
|
Reference in New Issue
Block a user