Commit d549f04 1 parent 4c0dd63 commit d549f04 Copy full SHA for d549f04
File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1585,9 +1585,7 @@ map_impl! {
1585
1585
1586
1586
#[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1587
1587
macro_rules! parse_ip_impl {
1588
- (
1589
- $ty: ty, $expecting: expr, $size: tt
1590
- ) => {
1588
+ ( $ty: ty, $expecting: expr, $size: tt) => {
1591
1589
impl <' de> Deserialize <' de> for $ty {
1592
1590
fn deserialize<D >( deserializer: D ) -> Result <Self , D :: Error >
1593
1591
where
@@ -1735,14 +1733,10 @@ impl<'de> Deserialize<'de> for net::IpAddr {
1735
1733
}
1736
1734
1737
1735
#[ 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 ) ;
1741
1737
1742
1738
#[ 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 ) ;
1746
1740
1747
1741
#[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1748
1742
macro_rules! parse_socket_impl {
You can’t perform that action at this time.
0 commit comments