diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-02-18 23:55:19 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-02-18 23:55:19 -0500 |
commit | a54f18f445e5bb13231ab3c716a32d1706119b5f (patch) | |
tree | f08cba15c7f47261c03860f8ca4f4839f43f0e6e /src/bin | |
parent | 93a6fb1027243a0f35d99373d84584b33a46c202 (diff) | |
download | rbw-a54f18f445e5bb13231ab3c716a32d1706119b5f.tar.gz rbw-a54f18f445e5bb13231ab3c716a32d1706119b5f.zip |
more clippy cleanups
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/rbw-agent/main.rs | 1 | ||||
-rw-r--r-- | src/bin/rbw-agent/sock.rs | 2 | ||||
-rw-r--r-- | src/bin/rbw/commands.rs | 3 | ||||
-rw-r--r-- | src/bin/rbw/main.rs | 1 |
4 files changed, 2 insertions, 5 deletions
diff --git a/src/bin/rbw-agent/main.rs b/src/bin/rbw-agent/main.rs index 8342a36..ad1fe80 100644 --- a/src/bin/rbw-agent/main.rs +++ b/src/bin/rbw-agent/main.rs @@ -11,6 +11,7 @@ #![allow(clippy::too_many_lines)] #![allow(clippy::type_complexity)] #![allow(clippy::multiple_crate_versions)] +#![allow(clippy::large_enum_variant)] use anyhow::Context as _; diff --git a/src/bin/rbw-agent/sock.rs b/src/bin/rbw-agent/sock.rs index b97d33d..280b8cc 100644 --- a/src/bin/rbw-agent/sock.rs +++ b/src/bin/rbw-agent/sock.rs @@ -44,8 +44,6 @@ impl Sock { pub fn listen() -> anyhow::Result<tokio::net::UnixListener> { let path = rbw::dirs::socket_file(); // if the socket already doesn't exist, that's fine - // https://github.com/rust-lang/rust-clippy/issues/8003 - #[allow(let_underscore_drop)] let _ = std::fs::remove_file(&path); let sock = tokio::net::UnixListener::bind(&path) .context("failed to listen on socket")?; diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index a2516d6..93f00da 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -514,7 +514,6 @@ impl DecryptedCipher { #[derive(Debug, Clone)] #[cfg_attr(test, derive(Eq, PartialEq))] -#[allow(clippy::large_enum_variant)] enum DecryptedData { Login { username: Option<String>, @@ -1252,8 +1251,6 @@ fn check_config() -> anyhow::Result<()> { fn version_or_quit() -> anyhow::Result<u32> { crate::actions::version().map_err(|e| { - // https://github.com/rust-lang/rust-clippy/issues/8003 - #[allow(let_underscore_drop)] let _ = crate::actions::quit(); e }) diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs index cd36755..822819a 100644 --- a/src/bin/rbw/main.rs +++ b/src/bin/rbw/main.rs @@ -11,6 +11,7 @@ #![allow(clippy::too_many_lines)] #![allow(clippy::type_complexity)] #![allow(clippy::multiple_crate_versions)] +#![allow(clippy::large_enum_variant)] use anyhow::Context as _; use clap::{CommandFactory as _, Parser as _}; |