add a lot more rustc and clippy workspace lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
71654f26b9
commit
56f36fe7a7
1 changed files with 38 additions and 1 deletions
39
Cargo.toml
39
Cargo.toml
|
@ -217,15 +217,24 @@ unused_extern_crates = "warn"
|
||||||
unused_import_braces = "warn"
|
unused_import_braces = "warn"
|
||||||
unused_lifetimes = "warn"
|
unused_lifetimes = "warn"
|
||||||
unused_qualifications = "warn"
|
unused_qualifications = "warn"
|
||||||
|
unused_macro_rules = "warn"
|
||||||
dead_code = "warn"
|
dead_code = "warn"
|
||||||
|
elided_lifetimes_in_paths = "warn"
|
||||||
|
macro_use_extern_crate = "warn"
|
||||||
|
single_use_lifetimes = "warn"
|
||||||
|
unit_bindings = "warn"
|
||||||
|
unsafe_op_in_unsafe_fn = "warn"
|
||||||
|
unused_tuple_struct_fields = "warn"
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
|
# pedantic = "warn"
|
||||||
|
|
||||||
suspicious = "warn" # assume deny in practice
|
suspicious = "warn" # assume deny in practice
|
||||||
perf = "warn" # assume deny in practice
|
perf = "warn" # assume deny in practice
|
||||||
|
|
||||||
redundant_clone = "warn"
|
redundant_clone = "warn"
|
||||||
cloned_instead_of_copied = "warn"
|
cloned_instead_of_copied = "warn"
|
||||||
expl_impl_clone_on_copy = "warn"
|
expl_impl_clone_on_copy = "warn"
|
||||||
# pedantic = "warn"
|
|
||||||
unnecessary_cast = "warn"
|
unnecessary_cast = "warn"
|
||||||
cast_lossless = "warn"
|
cast_lossless = "warn"
|
||||||
ptr_as_ptr = "warn"
|
ptr_as_ptr = "warn"
|
||||||
|
@ -259,3 +268,31 @@ unseparated_literal_suffix = "warn"
|
||||||
wildcard_dependencies = "warn"
|
wildcard_dependencies = "warn"
|
||||||
or_fun_call = "warn"
|
or_fun_call = "warn"
|
||||||
unnecessary_lazy_evaluations = "warn"
|
unnecessary_lazy_evaluations = "warn"
|
||||||
|
# as_conversions = "warn"
|
||||||
|
assertions_on_result_states = "warn"
|
||||||
|
default_union_representation = "warn"
|
||||||
|
deref_by_slicing = "warn"
|
||||||
|
empty_drop = "warn"
|
||||||
|
# error_impl_error = "warn"
|
||||||
|
exit = "warn"
|
||||||
|
filetype_is_file = "warn"
|
||||||
|
float_cmp_const = "warn"
|
||||||
|
# format_push_string = "warn"
|
||||||
|
impl_trait_in_params = "warn"
|
||||||
|
infinite_loop = "warn"
|
||||||
|
# let_underscore_untyped = "warn"
|
||||||
|
lossy_float_literal = "warn"
|
||||||
|
mem_forget = "warn"
|
||||||
|
# missing_assert_message = "warn"
|
||||||
|
# mod_module_files = "warn"
|
||||||
|
multiple_inherent_impl = "warn"
|
||||||
|
mutex_atomic = "warn"
|
||||||
|
# same_name_method = "warn"
|
||||||
|
# semicolon_outside_block = "warn"
|
||||||
|
string_lit_chars_any = "warn"
|
||||||
|
suspicious_xor_used_as_pow = "warn"
|
||||||
|
try_err = "warn"
|
||||||
|
unnecessary_safety_comment = "warn"
|
||||||
|
unnecessary_safety_doc = "warn"
|
||||||
|
unnecessary_self_imports = "warn"
|
||||||
|
verbose_file_reads = "warn"
|
||||||
|
|
Loading…
Add table
Reference in a new issue