Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fogapod committed Nov 6, 2023
1 parent 0f73db6 commit dab6f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deserialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand All @@ -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)
}
}

Expand Down

0 comments on commit dab6f4c

Please sign in to comment.