From 2ccc7255f74781ca248065c729c3661d13d50846 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 12 Jul 2024 08:58:26 -0400 Subject: [PATCH] Remove unknown_lint allows Signed-off-by: mulhern --- src/bin/stratis-min/stratisd-min.rs | 2 -- src/bin/stratisd.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/bin/stratis-min/stratisd-min.rs b/src/bin/stratis-min/stratisd-min.rs index 050e97c3bb..9802ede347 100644 --- a/src/bin/stratis-min/stratisd-min.rs +++ b/src/bin/stratis-min/stratisd-min.rs @@ -43,7 +43,6 @@ fn parse_args() -> Command { /// To ensure only one instance of stratisd runs at a time, acquire an /// exclusive lock. Return an error if lock attempt fails. fn trylock_pid_file() -> StratisResult> { - #[allow(unknown_lints)] #[allow(clippy::suspicious_open_options)] let f = OpenOptions::new() .read(true) @@ -77,7 +76,6 @@ fn trylock_pid_file() -> StratisResult> { } }; - #[allow(unknown_lints)] #[allow(clippy::suspicious_open_options)] let f = OpenOptions::new() .read(true) diff --git a/src/bin/stratisd.rs b/src/bin/stratisd.rs index e5d3d99b63..ec0e9c5767 100644 --- a/src/bin/stratisd.rs +++ b/src/bin/stratisd.rs @@ -51,7 +51,6 @@ fn initialize_log(log_level: Option<&str>) { /// To ensure only one instance of stratisd runs at a time, acquire an /// exclusive lock. Return an error if lock attempt fails. fn trylock_pid_file() -> StratisResult> { - #[allow(unknown_lints)] #[allow(clippy::suspicious_open_options)] let f = OpenOptions::new() .read(true) @@ -83,7 +82,6 @@ fn trylock_pid_file() -> StratisResult> { } }; - #[allow(unknown_lints)] #[allow(clippy::suspicious_open_options)] let f = OpenOptions::new() .read(true)