diff options
Diffstat (limited to 'tokio-current-thread/src/lib.rs')
-rw-r--r-- | tokio-current-thread/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tokio-current-thread/src/lib.rs b/tokio-current-thread/src/lib.rs index 483b1fd0..f22fb70e 100644 --- a/tokio-current-thread/src/lib.rs +++ b/tokio-current-thread/src/lib.rs @@ -429,7 +429,7 @@ impl<P: Park + Default> Default for CurrentThread<P> { // ===== impl Entered ===== -impl<'a, P: Park> Entered<'a, P> { +impl<P: Park> Entered<'_, P> { /// Spawn the future on the executor. /// /// This internally queues the future to be executed once `run` is called. @@ -593,7 +593,7 @@ impl<'a, P: Park> Entered<'a, P> { } } -impl<'a, P: Park> fmt::Debug for Entered<'a, P> { +impl<P: Park> fmt::Debug for Entered<'_, P> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.debug_struct("Entered") .field("executor", &self.executor) @@ -738,7 +738,7 @@ where // ===== impl Borrow ===== -impl<'a, U: Unpark> Borrow<'a, U> { +impl<U: Unpark> Borrow<'_, U> { fn enter<F, R>(&mut self, f: F) -> R where F: FnOnce() -> R, @@ -750,7 +750,7 @@ impl<'a, U: Unpark> Borrow<'a, U> { } } -impl<'a, U: Unpark> SpawnLocal for Borrow<'a, U> { +impl<U: Unpark> SpawnLocal for Borrow<'_, U> { fn spawn_local(&mut self, future: Pin<Box<dyn Future<Output = ()>>>, already_counted: bool) { if !already_counted { // NOTE: we have a borrow of the Runtime, so we know that it isn't shut down. @@ -770,7 +770,7 @@ impl CurrentRunner { { struct Reset<'a>(&'a CurrentRunner); - impl<'a> Drop for Reset<'a> { + impl Drop for Reset<'_> { fn drop(&mut self) { self.0.spawn.set(None); self.0.id.set(None); |