[pve-devel] [PATCH proxmox-perl-rs 04/15] pve-rs: tfa: clippy: question mark operator is useless here

Lukas Wagner l.wagner at proxmox.com
Thu Jun 20 13:50:10 CEST 2024


Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 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<bool, Error> {
         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)]
-- 
2.39.2





More information about the pve-devel mailing list