From 97892ae88a8b7aedf68b911b5d0930b54e316374 Mon Sep 17 00:00:00 2001 From: mulhern Date: Thu, 1 Aug 2024 10:34:29 -0400 Subject: [PATCH] Remove redundant deny entries in Cargo.toml Some of the lints listed as pedantic were at some point promoted to suspicious or style lints, which are already denied since those lint categories are implied by the all category, which is denied. Add further notations about the included pedantic and nursery lint deny entries to indicate that they can be removed without very deep consideration. Signed-off-by: mulhern --- Cargo.toml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 86f44782dc..5400081a06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -304,9 +304,10 @@ cargo = { level = "deny", priority = 1 } multiple-crate-versions = { level = "allow", priority = 2 } from_over_into = { level = "allow", priority = 3 } upper_case_acronyms = { level = "allow", priority = 3 } -# PEDANTIC LINTS -await_holding_lock = { level = "deny", priority = 4 } -await_holding_refcell_ref = { level = "deny", priority = 4 } +# SOME PEDANTIC OR NURSERY LINTS THAT STRATISD CURRENTLY OBEYS. +# IF ANY OF THESE LINTS ARE DISCOVERED TO BE UNNECESSARILY RESTRICTIVE, +# CHOOSING TO ALLOW THE LINT BY REMOVING THE DENY ENTRY SHOULD BE A MINOR +# DECISION AND EASILY MADE. cast_lossless = { level = "deny", priority = 4 } cast_possible_truncation = { level = "deny", priority = 4 } cast_precision_loss = { level = "deny", priority = 4 } @@ -320,18 +321,15 @@ explicit_deref_methods = { level = "deny", priority = 4 } explicit_into_iter_loop = { level = "deny", priority = 4 } fn_params_excessive_bools = { level = "deny", priority = 4 } implicit_hasher = { level = "deny", priority = 4 } -implicit_saturating_sub = { level = "deny", priority = 4 } inefficient_to_string = { level = "deny", priority = 4 } inline_always = { level = "deny", priority = 4 } invalid_upcast_comparisons = { level = "deny", priority = 4 } large_digit_groups = { level = "deny", priority = 4 } large_stack_arrays = { level = "deny", priority = 4 } large_types_passed_by_value = { level = "deny", priority = 4 } -let_unit_value = { level = "deny", priority = 4 } linkedlist = { level = "deny", priority = 4 } macro_use_imports = { level = "deny", priority = 4 } manual_ok_or = { level = "deny", priority = 4 } -map_flatten = { level = "deny", priority = 4 } match_bool = { level = "deny", priority = 4 } match_on_vec_items = { level = "deny", priority = 4 } match_wild_err_arm = { level = "deny", priority = 4 }