From 9211f671ab061358f66ab6fee5011ee669a80990 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 6 Jun 2025 06:07:33 +0000 Subject: [PATCH] Update src/data/totp_key.rs --- src/data/totp_key.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/data/totp_key.rs b/src/data/totp_key.rs index b6430d1..42def47 100644 --- a/src/data/totp_key.rs +++ b/src/data/totp_key.rs @@ -1,5 +1,3 @@ -use std::io::ErrorKind; - use base32::Alphabet; use rand::Rng; use totp_rfc6238::{HashAlgorithm, TotpGenerator}; @@ -90,8 +88,7 @@ impl TotpKey { let key = match base32::decode(BASE32_ALPHABET, &self.encoded) { None => { - return Err(Box::new(std::io::Error::new( - ErrorKind::Other, + return Err(Box::new(std::io::Error::other( "Failed to decode base32 secret!", ))); }