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/de.rs:1381:11 | 1381 | impl<'de, 'a, R: Read<'de>> de::Deserializer<'de> for &'a mut Deserializer<R> { | ^^ ^^ | = 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 | 1381 - impl<'de, 'a, R: Read<'de>> de::Deserializer<'de> for &'a mut Deserializer<R> { 1381 + impl<'de, R: Read<'de>> de::Deserializer<'de> for &mut Deserializer<R> { | warning: the following explicit lifetimes could be elided: 'a --> src/map.rs:418:6 | 418 | impl<'a, Q> ops::Index<&'a Q> for Map<String, Value> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 418 - impl<'a, Q> ops::Index<&'a Q> for Map<String, Value> 418 + impl<Q> ops::Index<&Q> for Map<String, Value> | warning: the following explicit lifetimes could be elided: 'a --> src/map.rs:441:6 | 441 | impl<'a, Q> ops::IndexMut<&'a Q> for Map<String, Value> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 441 - impl<'a, Q> ops::IndexMut<&'a Q> for Map<String, Value> 441 + impl<Q> ops::IndexMut<&Q> for Map<String, Value> | warning: the following explicit lifetimes could be elided: 'a --> src/value/index.rs:140:10 | 140 | impl<'a, T> Sealed for &'a T where T: ?Sized + Sealed {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 140 - impl<'a, T> Sealed for &'a T where T: ?Sized + Sealed {} 140 + impl<T> Sealed for &T where T: ?Sized + Sealed {} | warning: the following explicit lifetimes could be elided: 'a --> src/number.rs:612:11 | 612 | impl<'de, 'a> Deserializer<'de> for &'a Number { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 612 - impl<'de, 'a> Deserializer<'de> for &'a Number { 612 + impl<'de> Deserializer<'de> for &Number { | warning: the following explicit lifetimes could be elided: 'a --> src/read.rs:754:6 | 754 | impl<'a, 'de, R> private::Sealed for &'a mut R where R: Read<'de> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 754 - impl<'a, 'de, R> private::Sealed for &'a mut R where R: Read<'de> {} 754 + impl<'de, R> private::Sealed for &mut R where R: Read<'de> {} | warning: the following explicit lifetimes could be elided: 'a --> src/read.rs:756:6 | 756 | impl<'a, 'de, R> Read<'de> for &'a mut R | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 756 - impl<'a, 'de, R> Read<'de> for &'a mut R 756 + impl<'de, R> Read<'de> for &mut R |
- Loading branch information