mirror of
https://git.proxmox.com/git/proxmox-perl-rs
synced 2025-05-22 21:51:38 +00:00
pve-rs: tfa: clippy: question mark operator is useless here
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
79b2c8e481
commit
02d170a5b5
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user