From 6fc061b58853c1b0dafaa19a4a29343c0ac6eab3 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Tue, 25 Jun 2024 18:32:11 +0300 Subject: [PATCH] define workspace lints Signed-off-by: onur-ozkan --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index db54152709f..2d56629295f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -105,6 +105,14 @@ rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" } multiaddr = "0.18.0" multihash = "0.19.0" +[workspace.lints] +rust.unreachable_pub = "warn" +clippy.used_underscore_binding = "warn" +clippy.pedantic = { level = "allow", priority = -1 } +clippy.type_complexity = "allow" +clippy.unnecessary_wraps = "warn" +clippy.manual_let_else = "warn" +clippy.dbg_macro = "warn" [patch.crates-io]