Skip to content

Commit

Permalink
chore: address clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Feb 9, 2025
1 parent 61d9c9c commit 45c76d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ impl<'de> Deserialize<'de> for ByteSize {
where
D: Deserializer<'de>,
{
struct ByteSizeVistor;
struct ByteSizeVisitor;

impl<'de> de::Visitor<'de> for ByteSizeVistor {
impl de::Visitor<'_> for ByteSizeVisitor {
type Value = ByteSize;

fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
Expand Down Expand Up @@ -385,9 +385,9 @@ impl<'de> Deserialize<'de> for ByteSize {
}

if deserializer.is_human_readable() {
deserializer.deserialize_any(ByteSizeVistor)
deserializer.deserialize_any(ByteSizeVisitor)
} else {
deserializer.deserialize_u64(ByteSizeVistor)
deserializer.deserialize_u64(ByteSizeVisitor)
}
}
}
Expand Down

0 comments on commit 45c76d7

Please sign in to comment.