From 9c5346ac63322377fdef00d3239ce08190a8bd19 Mon Sep 17 00:00:00 2001 From: Reinier Maas Date: Wed, 24 Dec 2025 15:48:43 +0100 Subject: [PATCH] Refactor Clippy lints in `Cargo.toml` for stricter linting rules --- Cargo.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a27aa3f..cc70ea4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,6 @@ members = [ "libs/opsqueue_python", ] - [workspace.lints.clippy] cargo = { level = "warn", priority = -1 } cargo_common_metadata = "allow" @@ -25,6 +24,16 @@ restriction = { level = "allow", priority = -1 } style = { level = "warn", priority = -1 } suspicious = { level = "warn", priority = -1 } +# Explicitly selected `restriction` lints +mod_module_files = "warn" + +# Use `trace!`, `info!`, `warn!`, `error!` from `tracing` instead +dbg_macro = "warn" +print_stdout = "warn" +print_stderr = "warn" + +rc_mutex = "warn" + [profile.release] # Full fat LTO makes a big difference in performance, at the cost of a large # compile time hit. You should only use release builds when performance matters.