From 54c4e84bc99a1980a06989b19d04098bf8758b68 Mon Sep 17 00:00:00 2001 From: Yang Zhou Date: Sun, 22 Dec 2024 10:35:31 -0500 Subject: [PATCH] [FIX] clippy warning of cu29_value (#173) --- core/cu29_value/src/de.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cu29_value/src/de.rs b/core/cu29_value/src/de.rs index 0301ca60d..280e98540 100644 --- a/core/cu29_value/src/de.rs +++ b/core/cu29_value/src/de.rs @@ -27,7 +27,7 @@ pub enum Unexpected { Other(String), } -impl<'a> From> for Unexpected { +impl From> for Unexpected { fn from(unexp: de::Unexpected) -> Unexpected { match unexp { de::Unexpected::Bool(v) => Unexpected::Bool(v), @@ -317,7 +317,7 @@ impl<'de> de::Deserialize<'de> for Value { } } -impl<'de> de::IntoDeserializer<'de, DeserializerError> for Value { +impl de::IntoDeserializer<'_, DeserializerError> for Value { type Deserializer = Value; fn into_deserializer(self) -> Value { @@ -450,7 +450,7 @@ where } } -impl<'de, E> de::IntoDeserializer<'de, E> for ValueDeserializer +impl de::IntoDeserializer<'_, E> for ValueDeserializer where E: de::Error, {