From 00d67dc21a61fd646193c23caf50d9e6d3b530f2 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 18 Oct 2021 00:30:24 +0200 Subject: [PATCH 1/2] Update nightly --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 00901f820..d45871808 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,6 +1,6 @@ # Before upgrading check that everything is available on all tier1 targets here: # https://rust-lang.github.io/rustup-components-history [toolchain] -channel = "nightly-2021-08-18" +channel = "nightly-2021-10-16" components = [ "rust-src", "rustfmt" ] targets = [ "thumbv7em-none-eabi", "thumbv7m-none-eabi", "thumbv6m-none-eabi", "thumbv7em-none-eabihf", "thumbv8m.main-none-eabihf", "wasm32-unknown-unknown" ] From d7b768992eadf7443a1d0cc9e4f1a82c4cce6e21 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 18 Oct 2021 01:37:35 +0200 Subject: [PATCH 2/2] examples/std: fix warning --- examples/std/src/tuntap.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs index 53d3afd5c..a32099404 100644 --- a/examples/std/src/tuntap.rs +++ b/examples/std/src/tuntap.rs @@ -50,7 +50,6 @@ fn ifreq_ioctl( #[derive(Debug)] pub struct TunTap { fd: libc::c_int, - ifreq: ifreq, mtu: usize, } @@ -88,7 +87,7 @@ impl TunTap { // smoltcp counts the entire Ethernet packet in the MTU, so add the Ethernet header size to it. let mtu = ip_mtu + EthernetFrame::<&[u8]>::header_len(); - Ok(TunTap { fd, mtu, ifreq }) + Ok(TunTap { fd, mtu }) } } }