From f2623e7e9b03bc6539827e8c9d1a9cb6dd7ede2e Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 11 Sep 2021 00:10:46 +0200 Subject: Update lots of deps --- examples/std/Cargo.toml | 18 +++++++++--------- examples/std/src/serial_port.rs | 9 +++------ 2 files changed, 12 insertions(+), 15 deletions(-) (limited to 'examples/std') diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index 34b8ebb67..3ba495e59 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml @@ -9,12 +9,12 @@ embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "std", embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] } smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="e4241510337e095b9d21136c5f58b2eaa1b78479", default-features = false } -async-io = "1.3.1" -env_logger = "0.8.2" -futures = { version = "0.3.8", default-features = false, features = ["async-await"] } -log = "0.4.11" -nix = "0.21.0" -libc = "0.2.81" -clap = { version = "3.0.0-beta.2", features = ["derive"] } -rand_core = { version = "0.6.0", features = ["std"] } -heapless = { version = "0.7.1", default-features = false } +async-io = "1.6.0" +env_logger = "0.9.0" +futures = { version = "0.3.17", default-features = false, features = ["async-await"] } +log = "0.4.14" +nix = "0.22.1" +libc = "0.2.101" +clap = { version = "3.0.0-beta.4", features = ["derive"] } +rand_core = { version = "0.6.3", features = ["std"] } +heapless = { version = "0.7.5", default-features = false } diff --git a/examples/std/src/serial_port.rs b/examples/std/src/serial_port.rs index 7ac1b1edb..aadaeb81d 100644 --- a/examples/std/src/serial_port.rs +++ b/examples/std/src/serial_port.rs @@ -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() } -- cgit