pmg-rs: tfa: clippy: useless conversion to the same type

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-06-20 13:50:19 +02:00 committed by Thomas Lamprecht
parent 1c3af08a37
commit b9e227eedb

View File

@ -178,7 +178,7 @@ mod export {
#[try_from_ref] this: &Tfa,
) -> Result<(Option<String>, Option<super::WebauthnConfig>), Error> {
Ok(match this.inner.lock().unwrap().webauthn.clone() {
Some(config) => (Some(hex::encode(config.digest())), Some(config.into())),
Some(config) => (Some(hex::encode(config.digest())), Some(config)),
None => (None, None),
})
}