From 4d021060165104746050312821f459daf33963c0 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 1 Dec 2024 22:14:15 +0100 Subject: [PATCH] Update lints --- Cargo.toml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 82642e1..793a3e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,10 +12,24 @@ mark.path = "./mark" palette = "0.7.6" [workspace.lints] -rust.unsafe_code = "forbid" +rust.unsafe_code = { level = "forbid", priority = 1 } +# Lint groups +rust.deprecated_safe = "warn" rust.future_incompatible = "warn" +rust.keyword_idents = "warn" rust.rust_2018_idioms = "warn" rust.unused = "warn" -rust.noop_method_call = "warn" +# Individual lints +rust.let_underscore_drop = "warn" +rust.non_local_definitions = "warn" +rust.redundant_imports = "warn" +rust.redundant_lifetimes = "warn" rust.single_use_lifetimes = "warn" +rust.unit_bindings = "warn" +rust.unnameable_types = "warn" +rust.unused_crate_dependencies = "warn" +rust.unused_import_braces = "warn" +rust.unused_lifetimes = "warn" +rust.unused_qualifications = "warn" +# Clippy clippy.use_self = "warn"