Skip to content

Commit 37c9d0c

Browse files
authored
style(lib): remove lints that have been removed in newer clippy (#4167)
The following lints no longer exist in recent clippy versions and cause `unknown lint` errors (promoted to errors by `-D warnings` / `-W unknown-lints`): - clippy::unnecessary_rest_pattern - clippy::rest_pattern_accessible_field - clippy::definition_in_module_root Remove them from the allowed lints list in Cargo.toml.
1 parent 08a2881 commit 37c9d0c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,9 @@ panic = "allow"
139139
pattern_type_mismatch = "allow"
140140
redundant_closure_for_method_calls = "allow"
141141
redundant_else = "allow"
142-
rest_pattern_accessible_field = "allow" # TODO: consider, might catch bugs
143142
single_char_lifetime_names = "allow"
144143
struct_excessive_bools = "allow" # TODO: bogus lint?
145144
trivially_copy_pass_by_ref = "allow"
146-
unnecessary_rest_pattern = "allow" # TODO: simple fix
147145
unnecessary_trailing_comma = "allow"
148146
unnested_or_patterns = "allow"
149147
unused_async = "allow" # TODO: is it for API?
@@ -160,7 +158,6 @@ clone_on_ref_ptr = "allow" # Arc::clone(blah) is needlessly noisy
160158
cognitive_complexity = "allow" # is this ever useful?
161159
decimal_literal_representation = "allow" # arguably more human-readable
162160
default_numeric_fallback = "allow" # too many false positives
163-
definition_in_module_root = "allow" # this is normal
164161
expect_used = "allow" # expect is self-documenting
165162
error_impl_error = "allow" # mod::Error is a fine name
166163
field_scoped_visibility_modifiers = "allow" # possibly good idea, noisy for now

0 commit comments

Comments
 (0)