From cf466673fd63cecb386e8fb7ce99977b22a7de05 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 29 Nov 2024 10:52:22 -0600 Subject: [PATCH] style: Make clippy happy --- src/string.rs | 2 +- src/string_cow.rs | 4 ++-- src/string_ref.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/string.rs b/src/string.rs index 3ebef4a..b33ecc2 100644 --- a/src/string.rs +++ b/src/string.rs @@ -319,7 +319,7 @@ impl<'de, B: crate::backend::HeapStr> serde::Deserialize<'de> for KStringBase struct StringVisitor(std::marker::PhantomData); #[cfg(feature = "serde")] -impl<'de, B: crate::backend::HeapStr> serde::de::Visitor<'de> for StringVisitor { +impl serde::de::Visitor<'_> for StringVisitor { type Value = KStringBase; fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { diff --git a/src/string_cow.rs b/src/string_cow.rs index 19c18de..93962c5 100644 --- a/src/string_cow.rs +++ b/src/string_cow.rs @@ -352,7 +352,7 @@ impl std::str::FromStr for KStringCowBase<'_, B> { } #[cfg(feature = "serde")] -impl<'s, B: crate::backend::HeapStr> serde::Serialize for KStringCowBase<'s, B> { +impl serde::Serialize for KStringCowBase<'_, B> { #[inline] fn serialize(&self, serializer: S) -> Result where @@ -363,7 +363,7 @@ impl<'s, B: crate::backend::HeapStr> serde::Serialize for KStringCowBase<'s, B> } #[cfg(feature = "serde")] -impl<'de, 's, B: crate::backend::HeapStr> serde::Deserialize<'de> for KStringCowBase<'s, B> { +impl<'de, B: crate::backend::HeapStr> serde::Deserialize<'de> for KStringCowBase<'_, B> { fn deserialize(deserializer: D) -> Result where D: serde::Deserializer<'de>, diff --git a/src/string_ref.rs b/src/string_ref.rs index 01771f9..31ff1d5 100644 --- a/src/string_ref.rs +++ b/src/string_ref.rs @@ -244,7 +244,7 @@ impl<'s> From<&'s str> for KStringRef<'s> { } #[cfg(feature = "serde")] -impl<'s> serde::Serialize for KStringRef<'s> { +impl serde::Serialize for KStringRef<'_> { #[inline] fn serialize(&self, serializer: S) -> Result where