Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clippy::needless_lifetimes warning (#113)
``` warning: the following explicit lifetimes could be elided: 'a --> async-stream/src/yielder.rs:90:6 | 90 | impl<'a, T> Drop for Enter<'a, T> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 90 - impl<'a, T> Drop for Enter<'a, T> { 90 + impl<T> Drop for Enter<'_, T> { | warning: the following explicit lifetimes could be elided: 'a --> async-stream/tests/stream.rs:164:19 | 164 | fn stream<'a>(&'a self) -> impl Stream<Item = &str> + 'a { | ^^ ^^ ^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 164 - fn stream<'a>(&'a self) -> impl Stream<Item = &str> + 'a { 164 + fn stream(&self) -> impl Stream<Item = &str> + '_ { | ```
- Loading branch information