From c8d9cf16f58c4a507cd5e3d2a30d15db8fa72c5e Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 24 Nov 2024 20:55:48 +0100 Subject: [PATCH] Add some lints --- Cargo.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index f157821..0d49129 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,26 @@ version = "0.0.0" edition = "2021" [dependencies] + +[lints] +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" +# 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"