From d396c3ea3107c67802fa611012dc411a6e2f564a Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 25 Jul 2022 13:35:08 +0200 Subject: [PATCH] tfa: clippy fixups Signed-off-by: Wolfgang Bumiller --- proxmox-tfa/src/totp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-tfa/src/totp.rs b/proxmox-tfa/src/totp.rs index 5f10fe6e..30540e51 100644 --- a/proxmox-tfa/src/totp.rs +++ b/proxmox-tfa/src/totp.rs @@ -469,7 +469,7 @@ impl PartialEq<&str> for TotpValue { // I don't trust that `.parse()` never starts accepting `0x` prefixes so: #[allow(clippy::from_str_radix_10)] - match u32::from_str_radix(*other, 10) { + match u32::from_str_radix(other, 10) { Ok(value) => self.value() == value, Err(_) => false, }