diff --git a/Cargo.toml b/Cargo.toml index 5c9df77..c2ba42f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,17 +77,43 @@ inherits = "release" panic = "abort" [lints.clippy] +all = { level = "warn", priority = -1 } +cargo = { level = "warn", priority = -1 } +pedantic = { level = "warn", priority = -1 } +use_self = "warn" # nursery lint + +# Group-level allows for lints that are too noisy or not worth enforcing for now. multiple_crate_versions = "allow" cargo_common_metadata = "allow" uninlined_format_args = "allow" +missing_errors_doc = "allow" missing_panics_doc = "allow" - -use_self = "warn" -needless_pass_by_value = "warn" -semicolon_if_nothing_returned = "warn" -single_char_pattern = "warn" -explicit_iter_loop = "warn" -if_not_else = "warn" -manual_let_else = "warn" +must_use_candidate = "allow" +match_same_arms = "allow" +cast_possible_truncation = "allow" +too_many_lines = "allow" +cast_possible_wrap = "allow" +cast_sign_loss = "allow" +struct_excessive_bools = "allow" +cast_precision_loss = "allow" +cast_lossless = "allow" +ignored_unit_patterns = "allow" +similar_names = "allow" +float_cmp = "allow" +return_self_not_must_use = "allow" +inline_always = "allow" +fn_params_excessive_bools = "allow" +used_underscore_items = "allow" +should_panic_without_expect = "allow" +doc_markdown = "allow" +unused_self = "allow" +enum_glob_use = "allow" +unnested_or_patterns = "allow" +implicit_hasher = "allow" +doc_link_with_quotes = "allow" +format_push_string = "allow" +flat_map_option = "allow" +from_iter_instead_of_collect = "allow" +large_types_passed_by_value = "allow" # Disable for now, we have a few occurrences # panic = "warn"