mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-26 06:57:38 +00:00
tfa: clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
ea34292850
commit
d396c3ea31
@ -469,7 +469,7 @@ impl PartialEq<&str> for TotpValue {
|
|||||||
|
|
||||||
// I don't trust that `.parse()` never starts accepting `0x` prefixes so:
|
// I don't trust that `.parse()` never starts accepting `0x` prefixes so:
|
||||||
#[allow(clippy::from_str_radix_10)]
|
#[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,
|
Ok(value) => self.value() == value,
|
||||||
Err(_) => false,
|
Err(_) => false,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user