diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-08 21:20:26 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-08 21:20:26 +0000 |
| commit | 4f4b19d920c103453b2b0f9ce7994ca830ddb2d7 (patch) | |
| tree | 959f464c2bcddd9ca137af3815a0604b20e72ab3 /examples/std/src/tuntap.rs | |
| parent | 4eb9f0f3aebfa7b1d72830da2241b2a8b7ca139f (diff) | |
| parent | 9d62e886fb875eb461fe6c32d7ddef67f501a9d6 (diff) | |
Merge #530
530: Do not use exported Result to mitigate problems with clap. r=Dirbaio a=matoushybl
Co-authored-by: Matous Hybl <[email protected]>
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 | } |
