fix(TotpDigits): fix typo in TryFrom impl (#2702)

This commit is contained in:
Daniil Egortsev 2024-04-11 02:31:34 +02:00 committed by GitHub
parent 2ef84d8606
commit f252035254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ impl TryFrom<u8> for TotpDigits {
fn try_from(value: u8) -> Result<Self, Self::Error> {
match value {
6 => Ok(TotpDigits::Six),
8 => Ok(TotpDigits::Six),
8 => Ok(TotpDigits::Eight),
_ => Err(()),
}
}