From: Wolfgang Bumiller Date: Mon, 25 Jul 2022 11:35:08 +0000 (+0200) Subject: tfa: clippy fixups X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d396c3ea3107c67802fa611012dc411a6e2f564a;p=proxmox.git tfa: clippy fixups Signed-off-by: Wolfgang Bumiller --- 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, }