From 34c298bcc74d837c7d4ccdc671ab2d4c2c0f5e5f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 26 Dec 2024 00:37:23 -0500 Subject: [PATCH] clippy --- src/api.rs | 4 ++-- src/bin/rbw/commands.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api.rs b/src/api.rs index 3007fd1..f1491ea 100644 --- a/src/api.rs +++ b/src/api.rs @@ -100,7 +100,7 @@ impl<'de> serde::Deserialize<'de> for TwoFactorProviderType { D: serde::Deserializer<'de>, { struct TwoFactorProviderTypeVisitor; - impl<'de> serde::de::Visitor<'de> for TwoFactorProviderTypeVisitor { + impl serde::de::Visitor<'_> for TwoFactorProviderTypeVisitor { type Value = TwoFactorProviderType; fn expecting( @@ -186,7 +186,7 @@ impl<'de> serde::Deserialize<'de> for KdfType { D: serde::Deserializer<'de>, { struct KdfTypeVisitor; - impl<'de> serde::de::Visitor<'de> for KdfTypeVisitor { + impl serde::de::Visitor<'_> for KdfTypeVisitor { type Value = KdfType; fn expecting( diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index 486b5d1..61d9968 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -1643,9 +1643,8 @@ fn check_config() -> anyhow::Result<()> { } fn version_or_quit() -> anyhow::Result { - crate::actions::version().map_err(|e| { + crate::actions::version().inspect_err(|_| { let _ = crate::actions::quit(); - e }) }