From 02d170a5b5f49dcad11aad9965bb9ce784864f07 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Thu, 20 Jun 2024 13:50:10 +0200 Subject: [PATCH] pve-rs: tfa: clippy: question mark operator is useless here Signed-off-by: Lukas Wagner --- pve-rs/src/tfa.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pve-rs/src/tfa.rs b/pve-rs/src/tfa.rs index 6650151..9381ef0 100644 --- a/pve-rs/src/tfa.rs +++ b/pve-rs/src/tfa.rs @@ -490,11 +490,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)]