rust: allow some lints in suricatactl and suricatasc

These are lints we allow in the Suricata Rust source code for style
reasons.
pull/13410/head
Jason Ish 1 year ago committed by Victor Julien
parent 89ba53272c
commit 1aaf5cb7d2

@ -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;

@ -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;

Loading…
Cancel
Save