From dab6f4c05af75844edbb3bcfd9dcbecd35cb2260 Mon Sep 17 00:00:00 2001 From: Eugene Date: Mon, 6 Nov 2023 18:10:58 +0400 Subject: [PATCH] clippy fixes --- src/deserialize.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deserialize.rs b/src/deserialize.rs index 4e6e038..0555533 100644 --- a/src/deserialize.rs +++ b/src/deserialize.rs @@ -53,7 +53,7 @@ impl<'de> Deserialize<'de> for WordRegex { { let s: String = Deserialize::deserialize(deserializer)?; - Ok(Self::try_from(s).map_err(|err| de::Error::custom(err))?) + Self::try_from(s).map_err(de::Error::custom) } } @@ -64,7 +64,7 @@ impl<'de> Deserialize<'de> for PatternRegex { { let s: String = Deserialize::deserialize(deserializer)?; - Ok(Self::try_from(s).map_err(|err| de::Error::custom(err))?) + Self::try_from(s).map_err(de::Error::custom) } }