]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: allow some lints in suricatactl and suricatasc
authorJason Ish <jason.ish@oisf.net>
Mon, 9 Jun 2025 15:28:53 +0000 (09:28 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 10 Jun 2025 06:36:34 +0000 (08:36 +0200)
These are lints we allow in the Suricata Rust source code for style
reasons.

rust/suricatactl/src/main.rs
rust/suricatasc/src/main.rs

index 54e6f6441375bf1ab4cef6153351d6716755026a..f0542c94c4f3632f988c4130d9d3a3727b6fd179 100644 (file)
@@ -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;
index 884c87c2ea32df6d7a85aff627d962442b6b9410..3cf3f59311a9f0fe285d71c7622f93759c1ca5c1 100644 (file)
@@ -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;