mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
examples/std: fix warning
This commit is contained in:
parent
00d67dc21a
commit
d7b768992e
@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user