Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Dec 26, 2024
1 parent ab3cde3 commit 34c298b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
3 changes: 1 addition & 2 deletions src/bin/rbw/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1643,9 +1643,8 @@ fn check_config() -> anyhow::Result<()> {
}

fn version_or_quit() -> anyhow::Result<u32> {
crate::actions::version().map_err(|e| {
crate::actions::version().inspect_err(|_| {
let _ = crate::actions::quit();
e
})
}

Expand Down

0 comments on commit 34c298b

Please sign in to comment.