diff options
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r-- | src/sys/socket/mod.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index c776cf5b..1659bd1e 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -258,9 +258,13 @@ impl Eq for IpMembershipRequest {} impl fmt::Debug for IpMembershipRequest { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + let mref = &self.0.imr_multiaddr; + let maddr = mref.s_addr; + let iref = &self.0.imr_interface; + let ifaddr = iref.s_addr; f.debug_struct("IpMembershipRequest") - .field("imr_multiaddr", &self.0.imr_multiaddr.s_addr) - .field("imr_interface", &self.0.imr_interface.s_addr) + .field("imr_multiaddr", &maddr) + .field("imr_interface", &ifaddr) .finish() } } |