diff options
Diffstat (limited to 'examples/std/src/tuntap.rs')
| -rw-r--r-- | examples/std/src/tuntap.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs index 7ab08539f..328479e68 100644 --- a/examples/std/src/tuntap.rs +++ b/examples/std/src/tuntap.rs | |||
| @@ -141,10 +141,12 @@ impl TunTapDevice { | |||
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | use core::task::Waker; | 143 | use core::task::Waker; |
| 144 | use embassy_net::{DeviceCapabilities, LinkState, Packet, PacketBox, PacketBoxExt, PacketBuf}; | 144 | use embassy_net::{ |
| 145 | Device, DeviceCapabilities, LinkState, Packet, PacketBox, PacketBoxExt, PacketBuf, | ||
| 146 | }; | ||
| 145 | use std::task::Context; | 147 | use std::task::Context; |
| 146 | 148 | ||
| 147 | impl crate::Device for TunTapDevice { | 149 | impl Device for TunTapDevice { |
| 148 | fn is_transmit_ready(&mut self) -> bool { | 150 | fn is_transmit_ready(&mut self) -> bool { |
| 149 | true | 151 | true |
| 150 | } | 152 | } |
