File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1585,9 +1585,7 @@ map_impl! {
15851585
15861586#[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
15871587macro_rules! parse_ip_impl {
1588- (
1589- $ty: ty, $expecting: expr, $size: tt
1590- ) => {
1588+ ( $ty: ty, $expecting: expr, $size: tt) => {
15911589 impl <' de> Deserialize <' de> for $ty {
15921590 fn deserialize<D >( deserializer: D ) -> Result <Self , D :: Error >
15931591 where
@@ -1735,14 +1733,10 @@ impl<'de> Deserialize<'de> for net::IpAddr {
17351733}
17361734
17371735#[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1738- parse_ip_impl ! {
1739- net:: Ipv4Addr , "IPv4 address" , 4
1740- }
1736+ parse_ip_impl ! ( net:: Ipv4Addr , "IPv4 address" , 4 ) ;
17411737
17421738#[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1743- parse_ip_impl ! {
1744- net:: Ipv6Addr , "IPv6 address" , 16
1745- }
1739+ parse_ip_impl ! ( net:: Ipv6Addr , "IPv6 address" , 16 ) ;
17461740
17471741#[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
17481742macro_rules! parse_socket_impl {
You can’t perform that action at this time.
0 commit comments