diff --git a/async-stream/src/yielder.rs b/async-stream/src/yielder.rs index 4b7a944..c176b46 100644 --- a/async-stream/src/yielder.rs +++ b/async-stream/src/yielder.rs @@ -87,7 +87,7 @@ impl Receiver { // ===== impl Enter ===== -impl<'a, T> Drop for Enter<'a, T> { +impl Drop for Enter<'_, T> { fn drop(&mut self) { STORE.with(|cell| cell.set(self.prev)); } diff --git a/async-stream/tests/stream.rs b/async-stream/tests/stream.rs index 4e26a3d..abfd1fc 100644 --- a/async-stream/tests/stream.rs +++ b/async-stream/tests/stream.rs @@ -161,7 +161,7 @@ async fn borrow_self() { struct Data(String); impl Data { - fn stream<'a>(&'a self) -> impl Stream + 'a { + fn stream(&self) -> impl Stream + '_ { stream! { yield &self.0[..]; }