Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve some needless_lifetimes clippy lints
warning: the following explicit lifetimes could be elided: 'a --> src/drops.rs:35:6 | 35 | impl<'a, T> TrivialDrop for slice::Iter<'a, T> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 35 - impl<'a, T> TrivialDrop for slice::Iter<'a, T> {} 35 + impl<T> TrivialDrop for slice::Iter<'_, T> {} | warning: the following explicit lifetimes could be elided: 'a --> src/drops.rs:36:6 | 36 | impl<'a, T> TrivialDrop for slice::IterMut<'a, T> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 36 - impl<'a, T> TrivialDrop for slice::IterMut<'a, T> {} 36 + impl<T> TrivialDrop for slice::IterMut<'_, T> {} | warning: the following explicit lifetimes could be elided: 'a --> src/drops.rs:37:6 | 37 | impl<'a, T> TrivialDrop for option::IntoIter<&'a T> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 37 - impl<'a, T> TrivialDrop for option::IntoIter<&'a T> {} 37 + impl<T> TrivialDrop for option::IntoIter<&T> {} | warning: the following explicit lifetimes could be elided: 'a --> src/drops.rs:38:6 | 38 | impl<'a, T> TrivialDrop for option::IntoIter<&'a mut T> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 38 - impl<'a, T> TrivialDrop for option::IntoIter<&'a mut T> {} 38 + impl<T> TrivialDrop for option::IntoIter<&mut T> {} | warning: the following explicit lifetimes could be elided: 'a --> tests/debug/mod.rs:85:6 | 85 | impl<'a, T> Debug for Lite<&'a T> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `-W clippy::needless-lifetimes` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::needless_lifetimes)]` help: elide the lifetimes | 85 - impl<'a, T> Debug for Lite<&'a T> 85 + impl<T> Debug for Lite<&T> | warning: the following explicit lifetimes could be elided: 'a --> tests/macros/mod.rs:82:6 | 82 | impl<'a> TryIntoTokens for &'a str { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 82 - impl<'a> TryIntoTokens for &'a str { 82 + impl TryIntoTokens for &str { |
- Loading branch information