From ed52e5c0296e32e33e5150662966c36e50c0cbfc Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Wed, 10 Nov 2021 09:48:33 +0100 Subject: [PATCH] clippy: Remove useless code Signed-off-by: Sebastien Boeuf --- net_util/src/mac.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_util/src/mac.rs b/net_util/src/mac.rs index 9463fba0a..823272858 100644 --- a/net_util/src/mac.rs +++ b/net_util/src/mac.rs @@ -161,7 +161,7 @@ mod tests { let mac = MacAddr::parse_str("12:34:56:78:9a:BC").unwrap(); - println!("parsed MAC address: {}", mac.to_string()); + println!("parsed MAC address: {}", mac); let bytes = mac.get_bytes(); assert_eq!(bytes, [0x12u8, 0x34, 0x56, 0x78, 0x9a, 0xbc]);