aboutsummaryrefslogtreecommitdiff
path: root/examples/std
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-09-11 01:43:43 +0200
committerGitHub <[email protected]>2021-09-11 01:43:43 +0200
commit200f881048a8193c490ff5906ebf320ac98a8331 (patch)
treeb2b97c894dc78a907455a6718b9122d461ec87e5 /examples/std
parent9082e5f6c5982e7d220f54c8e64e0dd27c6c579d (diff)
parentf2623e7e9b03bc6539827e8c9d1a9cb6dd7ede2e (diff)
Merge pull request #392 from embassy-rs/update-deps
Update lots of deps
Diffstat (limited to 'examples/std')
-rw-r--r--examples/std/Cargo.toml18
-rw-r--r--examples/std/src/serial_port.rs9
2 files changed, 12 insertions, 15 deletions
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",
9embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] } 9embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] }
10smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="e4241510337e095b9d21136c5f58b2eaa1b78479", default-features = false } 10smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="e4241510337e095b9d21136c5f58b2eaa1b78479", default-features = false }
11 11
12async-io = "1.3.1" 12async-io = "1.6.0"
13env_logger = "0.8.2" 13env_logger = "0.9.0"
14futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 14futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
15log = "0.4.11" 15log = "0.4.14"
16nix = "0.21.0" 16nix = "0.22.1"
17libc = "0.2.81" 17libc = "0.2.101"
18clap = { version = "3.0.0-beta.2", features = ["derive"] } 18clap = { version = "3.0.0-beta.4", features = ["derive"] }
19rand_core = { version = "0.6.0", features = ["std"] } 19rand_core = { version = "0.6.3", features = ["std"] }
20heapless = { version = "0.7.1", default-features = false } 20heapless = { 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 @@
1use nix::errno::Errno;
1use nix::fcntl::OFlag; 2use nix::fcntl::OFlag;
2use nix::sys::termios; 3use nix::sys::termios;
3use nix::Error;
4use std::io; 4use std::io;
5use std::os::unix::io::{AsRawFd, RawFd}; 5use std::os::unix::io::{AsRawFd, RawFd};
6 6
@@ -63,9 +63,6 @@ impl io::Write for SerialPort {
63 } 63 }
64} 64}
65 65
66fn to_io_error(e: Error) -> io::Error { 66fn to_io_error(e: Errno) -> io::Error {
67 match e { 67 e.into()
68 Error::Sys(errno) => errno.into(),
69 e => io::Error::new(io::ErrorKind::InvalidInput, e),
70 }
71} 68}