From a29cb44434224ea02e4af7537f26a02ec2ce65b8 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Thu, 26 Jan 2023 17:56:43 +0100 Subject: Inline format macro arguments Fixes new warning clippy::uninlined-format-args. --- wpa-psk/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wpa-psk/src') diff --git a/wpa-psk/src/lib.rs b/wpa-psk/src/lib.rs index 5acf8e5..db114ab 100644 --- a/wpa-psk/src/lib.rs +++ b/wpa-psk/src/lib.rs @@ -156,7 +156,7 @@ pub fn wpa_psk_unchecked(ssid: &[u8], passphrase: &[u8]) -> [u8; 32] { /// Returns the hexdecimal representation of the given bytes. pub fn bytes_to_hex(bytes: &[u8]) -> String { - bytes.iter().map(|b| format!("{:02x}", b)).collect() + bytes.iter().map(|b| format!("{b:02x}")).collect() } #[cfg(test)] -- cgit v1.2.3