fix more clippy lints (part 1)
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
44440f745f
commit
59c7f93656
19 changed files with 77 additions and 80 deletions
43
Cargo.toml
43
Cargo.toml
|
@ -188,47 +188,52 @@ codegen-units=1
|
|||
workspace = true
|
||||
|
||||
[workspace.lints.rust]
|
||||
# missing_abi = "warn"
|
||||
missing_abi = "warn"
|
||||
# missing_docs = "warn"
|
||||
# noop_method_call = "warn"
|
||||
# pointer_structural_match = "warn"
|
||||
noop_method_call = "warn"
|
||||
pointer_structural_match = "warn"
|
||||
# unreachable_pub = "warn"
|
||||
# unused_extern_crates = "warn"
|
||||
# unused_import_braces = "warn"
|
||||
unused_extern_crates = "warn"
|
||||
unused_import_braces = "warn"
|
||||
# unused_lifetimes = "warn"
|
||||
unused_qualifications = "warn"
|
||||
# unused_tuple_struct_fields = "warn"
|
||||
unused_tuple_struct_fields = "warn"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
suspicious = "warn" # assume deny in practice
|
||||
perf = "warn" # assume deny in practice
|
||||
# redundant_clone = "warn"
|
||||
# cloned_instead_of_copied = "warn"
|
||||
redundant_clone = "warn"
|
||||
cloned_instead_of_copied = "warn"
|
||||
expl_impl_clone_on_copy = "warn"
|
||||
# pedantic = "warn"
|
||||
# as_conversions = "warn"
|
||||
unnecessary_cast = "warn"
|
||||
cast_lossless = "warn"
|
||||
ptr_as_ptr = "warn"
|
||||
ref_to_mut = "warn"
|
||||
char_lit_as_u8 = "warn"
|
||||
dbg_macro = "warn"
|
||||
# empty_structs_with_brackets = "warn"
|
||||
empty_structs_with_brackets = "warn"
|
||||
# get_unwrap = "warn"
|
||||
# if_then_some_else_none = "warn"
|
||||
# let_underscore_must_use = "warn"
|
||||
# map_err_ignore = "warn"
|
||||
# missing_docs_in_private_items = "warn"
|
||||
# negative_feature_names = "warn"
|
||||
# pub_without_shorthand = "warn"
|
||||
negative_feature_names = "warn"
|
||||
pub_without_shorthand = "warn"
|
||||
rc_buffer = "warn"
|
||||
rc_mutex = "warn"
|
||||
# redundant_feature_names = "warn"
|
||||
# redundant_type_annotations = "warn"
|
||||
redundant_feature_names = "warn"
|
||||
redundant_type_annotations = "warn"
|
||||
# ref_patterns = "warn"
|
||||
# rest_pat_in_fully_bound_structs = "warn"
|
||||
# str_to_string = "warn"
|
||||
rest_pat_in_fully_bound_structs = "warn"
|
||||
str_to_string = "warn"
|
||||
# string_add = "warn"
|
||||
# string_slice = "warn"
|
||||
# string_to_string = "warn"
|
||||
tests_outside_test_module = "warn"
|
||||
undocumented_unsafe_blocks = "warn"
|
||||
# unneeded_field_pattern = "warn"
|
||||
# unseparated_literal_suffix = "warn"
|
||||
unneeded_field_pattern = "warn"
|
||||
unseparated_literal_suffix = "warn"
|
||||
# unwrap_used = "warn"
|
||||
# wildcard_dependencies = "warn"
|
||||
# expect_used = "warn"
|
||||
wildcard_dependencies = "warn"
|
Loading…
Add table
Add a link
Reference in a new issue