From: Jason Ish Date: Mon, 9 Jun 2025 15:28:53 +0000 (-0600) Subject: rust: allow some lints in suricatactl and suricatasc X-Git-Tag: suricata-8.0.0-rc1~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aaf5cb7d2305f251b170bb3be5a29221c6a9192;p=thirdparty%2Fsuricata.git rust: allow some lints in suricatactl and suricatasc These are lints we allow in the Suricata Rust source code for style reasons. --- diff --git a/rust/suricatactl/src/main.rs b/rust/suricatactl/src/main.rs index 54e6f64413..f0542c94c4 100644 --- a/rust/suricatactl/src/main.rs +++ b/rust/suricatactl/src/main.rs @@ -1,6 +1,11 @@ // SPDX-FileCopyrightText: Copyright 2023 Open Information Security Foundation // SPDX-License-Identifier: GPL-2.0-only +// Allow these patterns as its a style we like. +#![allow(clippy::needless_return)] +#![allow(clippy::let_and_return)] +#![allow(clippy::uninlined_format_args)] + use clap::Parser; use clap::Subcommand; use tracing::Level; diff --git a/rust/suricatasc/src/main.rs b/rust/suricatasc/src/main.rs index 884c87c2ea..3cf3f59311 100644 --- a/rust/suricatasc/src/main.rs +++ b/rust/suricatasc/src/main.rs @@ -1,6 +1,11 @@ // SPDX-FileCopyrightText: Copyright 2023 Open Information Security Foundation // SPDX-License-Identifier: GPL-2.0-only +// Allow these patterns as its a style we like. +#![allow(clippy::needless_return)] +#![allow(clippy::let_and_return)] +#![allow(clippy::uninlined_format_args)] + #[cfg(not(target_os = "windows"))] mod unix;