diff --git a/src/de.rs b/src/de.rs index bd6f2e50c..7959a6635 100644 --- a/src/de.rs +++ b/src/de.rs @@ -1378,7 +1378,7 @@ macro_rules! check_recursion { }; } -impl<'de, 'a, R: Read<'de>> de::Deserializer<'de> for &'a mut Deserializer { +impl<'de, R: Read<'de>> de::Deserializer<'de> for &mut Deserializer { type Error = Error; #[inline] diff --git a/src/map.rs b/src/map.rs index 49265c3fe..90da86fed 100644 --- a/src/map.rs +++ b/src/map.rs @@ -415,7 +415,7 @@ impl Hash for Map { /// } /// # ; /// ``` -impl<'a, Q> ops::Index<&'a Q> for Map +impl ops::Index<&Q> for Map where String: Borrow, Q: ?Sized + Ord + Eq + Hash, @@ -438,7 +438,7 @@ where /// # /// map["key"] = json!("value"); /// ``` -impl<'a, Q> ops::IndexMut<&'a Q> for Map +impl ops::IndexMut<&Q> for Map where String: Borrow, Q: ?Sized + Ord + Eq + Hash, diff --git a/src/number.rs b/src/number.rs index b0863ed84..3ba0846a3 100644 --- a/src/number.rs +++ b/src/number.rs @@ -609,7 +609,7 @@ impl<'de> Deserializer<'de> for Number { } } -impl<'de, 'a> Deserializer<'de> for &'a Number { +impl<'de> Deserializer<'de> for &Number { type Error = Error; deserialize_any!(ref); diff --git a/src/read.rs b/src/read.rs index b84ec223a..a3aa5d164 100644 --- a/src/read.rs +++ b/src/read.rs @@ -751,9 +751,9 @@ impl<'a> Read<'a> for StrRead<'a> { ////////////////////////////////////////////////////////////////////////////// -impl<'a, 'de, R> private::Sealed for &'a mut R where R: Read<'de> {} +impl<'de, R> private::Sealed for &mut R where R: Read<'de> {} -impl<'a, 'de, R> Read<'de> for &'a mut R +impl<'de, R> Read<'de> for &mut R where R: Read<'de>, { diff --git a/src/value/index.rs b/src/value/index.rs index c56135b33..4e41a39be 100644 --- a/src/value/index.rs +++ b/src/value/index.rs @@ -137,7 +137,7 @@ mod private { impl Sealed for usize {} impl Sealed for str {} impl Sealed for alloc::string::String {} - impl<'a, T> Sealed for &'a T where T: ?Sized + Sealed {} + impl Sealed for &T where T: ?Sized + Sealed {} } /// Used in panic messages.