Skip to content

Commit

Permalink
Fixed IpVisitor name
Browse files Browse the repository at this point in the history
  • Loading branch information
wspeirs committed Sep 5, 2023
1 parent 4fa5422 commit ac75942
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cidr/ip_cidr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ impl<'de> Deserialize<'de> for IpCidr {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
D: Deserializer<'de>, {
struct Ipv4Visitor;
struct IpVisitor;

impl<'de> Visitor<'de> for Ipv4Visitor {
impl<'de> Visitor<'de> for IpVisitor {
type Value = IpCidr;

#[inline]
Expand All @@ -246,6 +246,6 @@ impl<'de> Deserialize<'de> for IpCidr {
}
}

deserializer.deserialize_str(Ipv4Visitor)
deserializer.deserialize_str(IpVisitor)
}
}

0 comments on commit ac75942

Please sign in to comment.