From e3dd69e8327424fe7b548d7d61d82c21cc01214c Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Thu, 20 Jun 2024 13:50:16 +0200 Subject: [PATCH] pmg-rs: tfa: clippy: question mark operator is useless here Signed-off-by: Lukas Wagner --- pmg-rs/src/tfa.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmg-rs/src/tfa.rs b/pmg-rs/src/tfa.rs index 0680baa..a97d171 100644 --- a/pmg-rs/src/tfa.rs +++ b/pmg-rs/src/tfa.rs @@ -441,11 +441,11 @@ mod export { #[export] fn api_unlock_tfa(#[raw] raw_this: Value, userid: &str) -> Result { let this: &Tfa = (&raw_this).try_into()?; - Ok(methods::unlock_and_reset_tfa( + methods::unlock_and_reset_tfa( &mut this.inner.lock().unwrap(), &UserAccess::new(&raw_this)?, userid, - )?) + ) } #[derive(serde::Serialize)]