Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
starkat99 committed Dec 14, 2022
1 parent b290baf commit 991346c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bfloat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1296,9 +1296,9 @@ impl<'de> serde::de::Visitor<'de> for Visitor {
where
E: serde::de::Error,
{
Ok(v.parse().map_err(|_| {
v.parse().map_err(|_| {
serde::de::Error::invalid_value(serde::de::Unexpected::Str(v), &"a float string")
})?)
})
}

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>
Expand Down
4 changes: 2 additions & 2 deletions src/binary16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1311,9 +1311,9 @@ impl<'de> serde::de::Visitor<'de> for Visitor {
where
E: serde::de::Error,
{
Ok(v.parse().map_err(|_| {
v.parse().map_err(|_| {
serde::de::Error::invalid_value(serde::de::Unexpected::Str(v), &"a float string")
})?)
})
}

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>
Expand Down

0 comments on commit 991346c

Please sign in to comment.