Update lots of deps

This commit is contained in:
Dario Nieuwenhuis
2021-09-11 00:10:46 +02:00
parent 9082e5f6c5
commit f2623e7e9b
26 changed files with 145 additions and 148 deletions

View File

@ -1,6 +1,6 @@
use nix::errno::Errno;
use nix::fcntl::OFlag;
use nix::sys::termios;
use nix::Error;
use std::io;
use std::os::unix::io::{AsRawFd, RawFd};
@ -63,9 +63,6 @@ impl io::Write for SerialPort {
}
}
fn to_io_error(e: Error) -> io::Error {
match e {
Error::Sys(errno) => errno.into(),
e => io::Error::new(io::ErrorKind::InvalidInput, e),
}
fn to_io_error(e: Errno) -> io::Error {
e.into()
}