Skip to content

Commit d549f04

Browse files
committed
Reformat parse_ip_impl definition and calls
1 parent 4c0dd63 commit d549f04

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

serde/src/de/impls.rs

+3-9
Original file line numberDiff line numberDiff line change
@@ -1585,9 +1585,7 @@ map_impl! {
15851585

15861586
#[cfg(any(feature = "std", not(no_core_net)))]
15871587
macro_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)))]
17481742
macro_rules! parse_socket_impl {

0 commit comments

Comments
 (0)