diff options
Diffstat (limited to 'examples/std/src/tuntap.rs')
| -rw-r--r-- | examples/std/src/tuntap.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs index 4d30118fb..7ab08539f 100644 --- a/examples/std/src/tuntap.rs +++ b/examples/std/src/tuntap.rs | |||
| @@ -170,8 +170,7 @@ impl crate::Device for TunTapDevice { | |||
| 170 | Err(e) if e.kind() == io::ErrorKind::WouldBlock => { | 170 | Err(e) if e.kind() == io::ErrorKind::WouldBlock => { |
| 171 | let ready = if let Some(w) = self.waker.as_ref() { | 171 | let ready = if let Some(w) = self.waker.as_ref() { |
| 172 | let mut cx = Context::from_waker(w); | 172 | let mut cx = Context::from_waker(w); |
| 173 | let ready = self.device.poll_readable(&mut cx).is_ready(); | 173 | self.device.poll_readable(&mut cx).is_ready() |
| 174 | ready | ||
| 175 | } else { | 174 | } else { |
| 176 | false | 175 | false |
| 177 | }; | 176 | }; |
