diff options
Diffstat (limited to 'tokio-current-thread/src/scheduler.rs')
-rw-r--r-- | tokio-current-thread/src/scheduler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio-current-thread/src/scheduler.rs b/tokio-current-thread/src/scheduler.rs index 29dc42e4..06ad2aa6 100644 --- a/tokio-current-thread/src/scheduler.rs +++ b/tokio-current-thread/src/scheduler.rs @@ -253,7 +253,7 @@ where node: Option<Arc<Node<U>>>, } - impl<'a, U: Unpark> Drop for Bomb<'a, U> { + impl<U: Unpark> Drop for Bomb<'_, U> { fn drop(&mut self) { if let Some(node) = self.node.take() { self.borrow.enter(|| release_node(node)) @@ -329,7 +329,7 @@ where } } -impl<'a, U: Unpark> Scheduled<'a, U> { +impl<U: Unpark> Scheduled<'_, U> { /// Polls the task, returns `true` if the task has completed. pub fn tick(&mut self) -> bool { let waker = unsafe { |