diff options
Diffstat (limited to 'cros_async/src/fd_executor.rs')
-rw-r--r-- | cros_async/src/fd_executor.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cros_async/src/fd_executor.rs b/cros_async/src/fd_executor.rs index 349cc42..cc67793 100644 --- a/cros_async/src/fd_executor.rs +++ b/cros_async/src/fd_executor.rs @@ -186,9 +186,8 @@ impl FdWakerState { // Remove the waker for the given token if it hasn't fired yet. fn cancel_waker(&mut self, token: WakerToken) -> Result<()> { - if let Some((fd, waker)) = self.token_map.remove(&token.0) { + if let Some((fd, _waker)) = self.token_map.remove(&token.0) { self.poll_ctx.delete(&fd).map_err(Error::PollContextError)?; - waker.wake_by_ref(); } Ok(()) } |