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 }) } } }