mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-25 12:14:06 +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:
|
||||
#[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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user