Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ipnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ impl Ipv4Net {

impl std::fmt::Display for Ipv4Net {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}/{}", &self.addr, self.width)
write!(f, "{}/{}", self.addr, self.width)
}
}

Expand Down Expand Up @@ -1053,7 +1053,7 @@ impl Ipv6Net {

impl std::fmt::Display for Ipv6Net {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}/{}", &self.addr, self.width)
write!(f, "{}/{}", self.addr, self.width)
}
}

Expand Down
Loading