diff --git a/sources/api/netdog/src/networkd/config/netdev.rs b/sources/api/netdog/src/networkd/config/netdev.rs index 9ca750c3f31..f3b6aa5d5a7 100644 --- a/sources/api/netdog/src/networkd/config/netdev.rs +++ b/sources/api/netdog/src/networkd/config/netdev.rs @@ -135,7 +135,7 @@ enum NetDevMacAddress { impl Display for NetDevMacAddress { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - NetDevMacAddress::MacAddress(m) => write!(f, "{}", m.to_string()), + NetDevMacAddress::MacAddress(m) => write!(f, "{}", m), NetDevMacAddress::Nothing => write!(f, "none"), } }