From b9e227eedb437ecdac5b4d6db5090f939d84a47a Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Thu, 20 Jun 2024 13:50:19 +0200 Subject: [PATCH] pmg-rs: tfa: clippy: useless conversion to the same type Signed-off-by: Lukas Wagner --- pmg-rs/src/tfa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmg-rs/src/tfa.rs b/pmg-rs/src/tfa.rs index af69721..4e9ce8f 100644 --- a/pmg-rs/src/tfa.rs +++ b/pmg-rs/src/tfa.rs @@ -178,7 +178,7 @@ mod export { #[try_from_ref] this: &Tfa, ) -> Result<(Option, Option), 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), }) }