[pve-devel] [PATCH proxmox-perl-rs v2 12/15] pmg-rs: tfa: clippy: useless conversion to the same type

Lukas Wagner l.wagner at proxmox.com
Fri Aug 2 14:25:39 CEST 2024


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





More information about the pve-devel mailing list