fix(rust): update config
This commit is contained in:
+3
-16
@@ -29,14 +29,15 @@ unused_qualifications = "warn"
|
|||||||
unused_results = "warn"
|
unused_results = "warn"
|
||||||
|
|
||||||
[lints.clippy]
|
[lints.clippy]
|
||||||
pedantic = "warn"
|
# pedantic
|
||||||
|
pedantic = { level = "warn", priority = -1 }
|
||||||
|
similar_names = "allow"
|
||||||
|
|
||||||
# restriction
|
# restriction
|
||||||
absolute_paths = "warn"
|
absolute_paths = "warn"
|
||||||
alloc_instead_of_core = "warn"
|
alloc_instead_of_core = "warn"
|
||||||
allow_attributes = "warn"
|
allow_attributes = "warn"
|
||||||
allow_attributes_without_reason = "warn"
|
allow_attributes_without_reason = "warn"
|
||||||
arbitrary_source_item_ordering = "warn"
|
|
||||||
as_pointer_underscore = "warn"
|
as_pointer_underscore = "warn"
|
||||||
as_underscore = "warn"
|
as_underscore = "warn"
|
||||||
assertions_on_result_states = "warn"
|
assertions_on_result_states = "warn"
|
||||||
@@ -45,22 +46,17 @@ clone_on_ref_ptr = "warn"
|
|||||||
create_dir = "warn"
|
create_dir = "warn"
|
||||||
dbg_macro = "warn"
|
dbg_macro = "warn"
|
||||||
decimal_literal_representation = "warn"
|
decimal_literal_representation = "warn"
|
||||||
default_numeric_fallback = "warn"
|
|
||||||
default_union_representation = "warn"
|
default_union_representation = "warn"
|
||||||
doc_include_without_cfg = "warn"
|
doc_include_without_cfg = "warn"
|
||||||
doc_paragraphs_missing_punctuation = "warn"
|
doc_paragraphs_missing_punctuation = "warn"
|
||||||
else_if_without_else = "warn"
|
|
||||||
empty_enum_variants_with_brackets = "warn"
|
empty_enum_variants_with_brackets = "warn"
|
||||||
empty_structs_with_brackets = "warn"
|
empty_structs_with_brackets = "warn"
|
||||||
error_impl_error = "warn"
|
error_impl_error = "warn"
|
||||||
exit = "warn"
|
exit = "warn"
|
||||||
field_scoped_visibility_modifiers = "warn"
|
field_scoped_visibility_modifiers = "warn"
|
||||||
float_cmp_const = "warn"
|
float_cmp_const = "warn"
|
||||||
fn_to_numeric_cast_any = "warn"
|
|
||||||
get_unwrap = "warn"
|
get_unwrap = "warn"
|
||||||
if_then_some_else_none = "warn"
|
|
||||||
impl_trait_in_params = "warn"
|
impl_trait_in_params = "warn"
|
||||||
indexing_slicing = "warn"
|
|
||||||
infinite_loop = "warn"
|
infinite_loop = "warn"
|
||||||
let_underscore_must_use = "warn"
|
let_underscore_must_use = "warn"
|
||||||
lossy_float_literal = "warn"
|
lossy_float_literal = "warn"
|
||||||
@@ -69,9 +65,7 @@ map_with_unused_argument_over_ranges = "warn"
|
|||||||
mem_forget = "warn"
|
mem_forget = "warn"
|
||||||
missing_assert_message = "warn"
|
missing_assert_message = "warn"
|
||||||
missing_asserts_for_indexing = "warn"
|
missing_asserts_for_indexing = "warn"
|
||||||
missing_docs_in_private_items = "warn"
|
|
||||||
missing_inline_in_public_items = "warn"
|
missing_inline_in_public_items = "warn"
|
||||||
module_name_repetitions = "warn"
|
|
||||||
multiple_inherent_impl = "warn"
|
multiple_inherent_impl = "warn"
|
||||||
multiple_unsafe_ops_per_block = "warn"
|
multiple_unsafe_ops_per_block = "warn"
|
||||||
mutex_atomic = "warn"
|
mutex_atomic = "warn"
|
||||||
@@ -80,7 +74,6 @@ non_zero_suggestions = "warn"
|
|||||||
panic = "warn"
|
panic = "warn"
|
||||||
partial_pub_fields = "warn"
|
partial_pub_fields = "warn"
|
||||||
pathbuf_init_then_push = "warn"
|
pathbuf_init_then_push = "warn"
|
||||||
pattern_type_mismatch = "warn"
|
|
||||||
pointer_format = "warn"
|
pointer_format = "warn"
|
||||||
precedence_bits = "warn"
|
precedence_bits = "warn"
|
||||||
pub_use = "warn"
|
pub_use = "warn"
|
||||||
@@ -94,15 +87,9 @@ rest_pat_in_fully_bound_structs = "warn"
|
|||||||
return_and_then = "warn"
|
return_and_then = "warn"
|
||||||
same_name_method = "warn"
|
same_name_method = "warn"
|
||||||
self_named_module_files = "warn"
|
self_named_module_files = "warn"
|
||||||
semicolon_inside_block = "warn"
|
|
||||||
shadow_reuse = "warn"
|
|
||||||
shadow_same = "warn"
|
|
||||||
shadow_unrelated = "warn"
|
|
||||||
single_char_lifetime_names = "warn"
|
|
||||||
str_to_string = "warn"
|
str_to_string = "warn"
|
||||||
string_add = "warn"
|
string_add = "warn"
|
||||||
string_lit_chars_any = "warn"
|
string_lit_chars_any = "warn"
|
||||||
string_slice = "warn"
|
|
||||||
suspicious_xor_used_as_pow = "warn"
|
suspicious_xor_used_as_pow = "warn"
|
||||||
tests_outside_test_module = "warn"
|
tests_outside_test_module = "warn"
|
||||||
todo = "warn"
|
todo = "warn"
|
||||||
|
|||||||
+2
-3
@@ -1,4 +1,3 @@
|
|||||||
check-private-items = true
|
|
||||||
trait-assoc-item-kinds-order = ["const", "type", "fn"]
|
trait-assoc-item-kinds-order = ["const", "type", "fn"]
|
||||||
module-item-order-groupings = [
|
module-item-order-groupings = [
|
||||||
["modules", ["extern_crate", "mod", "foreign_mod"]],
|
["modules", ["extern_crate", "mod", "foreign_mod"]],
|
||||||
@@ -9,6 +8,6 @@ module-item-order-groupings = [
|
|||||||
["functions", ["fn"]],
|
["functions", ["fn"]],
|
||||||
["implementations", ["impl"]],
|
["implementations", ["impl"]],
|
||||||
]
|
]
|
||||||
module-items-ordered-within-groupings = "all"
|
allow-unwrap-in-tests = true
|
||||||
missing-docs-allow-unused = true
|
allow-panic-in-tests = true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user