summaryrefslogtreecommitdiff
path: root/examples/std
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-10-18 01:37:35 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-10-18 01:37:35 +0200
commitd7b768992eadf7443a1d0cc9e4f1a82c4cce6e21 (patch)
tree80d8c2a2fa3d59cf93e8ed2058ca055d6ef1a686 /examples/std
parent00d67dc21a61fd646193c23caf50d9e6d3b530f2 (diff)
downloadembassy-d7b768992eadf7443a1d0cc9e4f1a82c4cce6e21.zip
examples/std: fix warning
Diffstat (limited to 'examples/std')
-rw-r--r--examples/std/src/tuntap.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs
index 53d3afd5..a3209940 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 })
}
}
}