Skip to content

Commit 34bbfe8

Browse files
committed
add more lints
I reread through all of clippy's allow-by-default lints that aren't in the nursery group and all of rustc's allow-by-default lints and cherrypicked ones I think are good.
1 parent 4979c1a commit 34bbfe8

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Cargo.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,51 @@
11
[workspace.lints.rust]
2+
elided_lifetimes_in_paths = "warn"
3+
explicit_outlives_requirements = "warn"
4+
macro_use_extern_crate = "warn"
25
missing_abi = "warn"
36
missing_docs = "warn"
47
noop_method_call = "warn"
58
pointer_structural_match = "warn"
9+
single_use_lifetimes = "warn"
10+
unit_bindings = "warn"
611
unreachable_pub = "warn"
12+
unsafe_op_in_unsafe_fn = "warn"
713
unused_extern_crates = "warn"
814
unused_import_braces = "warn"
915
unused_lifetimes = "warn"
16+
unused_macro_rules = "warn"
1017
unused_qualifications = "warn"
1118
unused_tuple_struct_fields = "warn"
1219

1320
[workspace.lints.clippy]
1421
pedantic = "warn"
1522

1623
as_conversions = "warn"
24+
assertions_on_result_states = "warn"
1725
dbg_macro = "warn"
26+
default_union_representation = "warn"
27+
deref_by_slicing = "warn"
28+
empty_drop = "warn"
1829
empty_structs_with_brackets = "warn"
30+
error_impl_error = "warn"
31+
exit = "warn"
32+
filetype_is_file = "warn"
33+
float_cmp_const = "warn"
34+
format_push_string = "warn"
1935
get_unwrap = "warn"
2036
if_then_some_else_none = "warn"
37+
impl_trait_in_params = "warn"
38+
infinite_loop = "warn"
2139
let_underscore_must_use = "warn"
40+
let_underscore_untyped = "warn"
41+
lossy_float_literal = "warn"
2242
map_err_ignore = "warn"
43+
mem_forget = "warn"
44+
missing_assert_message = "warn"
2345
missing_docs_in_private_items = "warn"
46+
mod_module_files = "warn"
47+
multiple_inherent_impl = "warn"
48+
mutex_atomic = "warn"
2449
negative_feature_names = "warn"
2550
pub_without_shorthand = "warn"
2651
rc_buffer = "warn"
@@ -29,15 +54,24 @@ redundant_feature_names = "warn"
2954
redundant_type_annotations = "warn"
3055
ref_patterns = "warn"
3156
rest_pat_in_fully_bound_structs = "warn"
57+
same_name_method = "warn"
58+
semicolon_outside_block = "warn"
3259
str_to_string = "warn"
3360
string_add = "warn"
61+
string_lit_chars_any = "warn"
3462
string_slice = "warn"
3563
string_to_string = "warn"
64+
suspicious_xor_used_as_pow = "warn"
3665
tests_outside_test_module = "warn"
66+
try_err = "warn"
3767
undocumented_unsafe_blocks = "warn"
68+
unnecessary_safety_comment = "warn"
69+
unnecessary_safety_doc = "warn"
70+
unnecessary_self_imports = "warn"
3871
unneeded_field_pattern = "warn"
3972
unseparated_literal_suffix = "warn"
4073
unwrap_used = "warn"
74+
verbose_file_reads = "warn"
4175
wildcard_dependencies = "warn"
4276

4377
[package]

0 commit comments

Comments
 (0)