We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcfb17 commit 68444e4Copy full SHA for 68444e4
src/otp/otp_element.rs
@@ -263,7 +263,7 @@ impl OTPElementBuilder {
263
264
// Validate secret encoding
265
match self.type_.unwrap_or_default() {
266
- OTPType::Motp => hex::decode(&self.secret.as_ref().unwrap())
+ OTPType::Motp => hex::decode(self.secret.as_ref().unwrap())
267
.map(|_| {})
268
.map_err(|e| eyre!("Invalid hex secret: {e}")),
269
_ => BASE32_NOPAD
0 commit comments