tfa: clippy fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-07-25 13:35:08 +02:00
parent ea34292850
commit d396c3ea31

View 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,
}