]> git.proxmox.com Git - proxmox.git/commitdiff
tfa: clippy fixups
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 25 Jul 2022 11:35:08 +0000 (13:35 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 25 Jul 2022 11:35:57 +0000 (13:35 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-tfa/src/totp.rs

index 5f10fe6e9b2f1708ee16ba1764c6200c50175e93..30540e519124493dae1144d0f29687dac27f318d 100644 (file)
@@ -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,
         }