Skip to content

Commit 68444e4

Browse files
committed
chore: resolve clippy warnings
1 parent 1bcfb17 commit 68444e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/otp/otp_element.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl OTPElementBuilder {
263263

264264
// Validate secret encoding
265265
match self.type_.unwrap_or_default() {
266-
OTPType::Motp => hex::decode(&self.secret.as_ref().unwrap())
266+
OTPType::Motp => hex::decode(self.secret.as_ref().unwrap())
267267
.map(|_| {})
268268
.map_err(|e| eyre!("Invalid hex secret: {e}")),
269269
_ => BASE32_NOPAD

0 commit comments

Comments
 (0)