From ac7594299e32b0936c944f4e2e95087632456ee6 Mon Sep 17 00:00:00 2001 From: William Speirs Date: Tue, 5 Sep 2023 13:46:06 -0400 Subject: [PATCH] Fixed IpVisitor name --- src/cidr/ip_cidr.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cidr/ip_cidr.rs b/src/cidr/ip_cidr.rs index df80650..f43a28d 100644 --- a/src/cidr/ip_cidr.rs +++ b/src/cidr/ip_cidr.rs @@ -228,9 +228,9 @@ impl<'de> Deserialize<'de> for IpCidr { fn deserialize(deserializer: D) -> Result where D: Deserializer<'de>, { - struct Ipv4Visitor; + struct IpVisitor; - impl<'de> Visitor<'de> for Ipv4Visitor { + impl<'de> Visitor<'de> for IpVisitor { type Value = IpCidr; #[inline] @@ -246,6 +246,6 @@ impl<'de> Deserialize<'de> for IpCidr { } } - deserializer.deserialize_str(Ipv4Visitor) + deserializer.deserialize_str(IpVisitor) } }