From afe8c1f9d88edd37e3390e877ae7eedef7cc0932 Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Tue, 17 Dec 2024 21:56:25 +1300 Subject: [PATCH] Fix serde feature clippy errors and warnings. --- src/features/impl_serde.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/impl_serde.rs b/src/features/impl_serde.rs index 08ed73d7..87d09b0e 100644 --- a/src/features/impl_serde.rs +++ b/src/features/impl_serde.rs @@ -907,7 +907,7 @@ mod bool { type Value = BVec3A; fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { - formatter.write_str(&concat!("a sequence of 3 ", stringify!($t), "values")) + formatter.write_str(concat!("a sequence of 3 ", stringify!($t), "values")) } fn visit_seq(self, mut seq: V) -> Result @@ -977,7 +977,7 @@ mod bool { type Value = BVec4A; fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { - formatter.write_str(&concat!("a sequence of 4 ", stringify!($t), "values")) + formatter.write_str(concat!("a sequence of 4 ", stringify!($t), "values")) } fn visit_seq(self, mut seq: V) -> Result @@ -1295,7 +1295,7 @@ mod euler { } struct FieldVisitor; - impl<'de> serde::de::Visitor<'de> for FieldVisitor { + impl serde::de::Visitor<'_> for FieldVisitor { type Value = Field; fn expecting(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { core::fmt::Formatter::write_str(formatter, "a variant identifier")