diff --git a/Cargo.toml b/Cargo.toml index 79f6306..2ed91cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,6 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)', 'cfg(coverage_ [lints.clippy] all = { level = "warn", priority = -1 } -empty_docs = { level = "allow", priority = 1 } # From `Tsify` # restriction dbg_macro = "warn" todo = "warn" @@ -47,31 +46,6 @@ rest_pat_in_fully_bound_structs = "warn" unnecessary_safety_comment = "warn" undocumented_unsafe_blocks = "warn" infinite_loop = "warn" -# I want to write the best Rust code so pedantic is enabled. -# We should only disable rules globally if they are either false positives, chaotic, or does not make sense. -pedantic = { level = "warn", priority = -1 } -# Allowed rules -# pedantic -# This rule is too pedantic, I don't want to force this because naming things are hard. -module_name_repetitions = "allow" -# All triggers are mostly ignored in our codebase, so this is ignored globally. -struct_excessive_bools = "allow" -too_many_lines = "allow" -# `#[must_use]` is creating too much noise for this codebase, it does not add much value -# except nagging the programmer to add a `#[must_use]` after clippy has been run. -# Having `#[must_use]` everywhere also hinders readability. -must_use_candidate = "allow" -# Too annoying, we import by name anyway. -wildcard_imports = "allow" -# used_underscore_binding= "allow" -doc_markdown = "allow" -# nursery -# `const` functions do not make sense for our project because this is not a `const` library. -# This rule also confuses newcomers and forces them to add `const` blindlessly without any reason. -missing_const_for_fn = "allow" -# cargo -cargo = { level = "warn", priority = -1 } -multiple_crate_versions = "allow" [lib] doctest = false