mirror of
https://git.proxmox.com/git/proxmox-perl-rs
synced 2025-05-23 11:16:40 +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]
|
#[export]
|
||||||
fn api_unlock_tfa(#[raw] raw_this: Value, userid: &str) -> Result<bool, Error> {
|
fn api_unlock_tfa(#[raw] raw_this: Value, userid: &str) -> Result<bool, Error> {
|
||||||
let this: &Tfa = (&raw_this).try_into()?;
|
let this: &Tfa = (&raw_this).try_into()?;
|
||||||
Ok(methods::unlock_and_reset_tfa(
|
methods::unlock_and_reset_tfa(
|
||||||
&mut this.inner.lock().unwrap(),
|
&mut this.inner.lock().unwrap(),
|
||||||
&UserAccess::new(&raw_this)?,
|
&UserAccess::new(&raw_this)?,
|
||||||
userid,
|
userid,
|
||||||
)?)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(serde::Serialize)]
|
#[derive(serde::Serialize)]
|
||||||
|
Loading…
Reference in New Issue
Block a user