Skip to content

Commit

Permalink
add debug implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Oct 14, 2022
1 parent 8260320 commit 91d57ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Expand Up @@ -1124,6 +1124,14 @@ cfg_if! {
.finish()
}
}
impl ::fmt::Debug for ifreq {
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
f.debug_struct("ifreq")
.field("ifr_name", &self.ifr_name)
.field("ifr_ifru", &self.ifr_ifru)
.finish()
}
}
}
}

Expand Down

0 comments on commit 91d57ce

Please sign in to comment.