From 92fc4fa098935ffb6633dac1af0dba8924027f5a Mon Sep 17 00:00:00 2001 From: Christian Visintin Date: Fri, 27 Feb 2026 22:35:06 +0100 Subject: [PATCH] chore: add centralized lint configuration to Cargo.toml --- Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e5f2685..e3836f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,6 +116,18 @@ keyring = [] smb = ["dep:remotefs-smb"] smb-vendored = ["remotefs-smb/vendored"] +[lints.rust] +trivial_numeric_casts = "warn" +unsafe_op_in_unsafe_fn = "warn" +unused_lifetimes = "warn" + +[lints.clippy] +complexity = { level = "warn", priority = -1 } +correctness = { level = "warn", priority = -1 } +perf = { level = "warn", priority = -1 } +style = { level = "warn", priority = -1 } +suspicious = { level = "warn", priority = -1 } + [profile.dev] incremental = true