Skip to content

Commit f3e0cc0

Browse files
committed
chore: Experiment with more lints
1 parent cc53e46 commit f3e0cc0

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ include = [
1818

1919
[workspace.lints.rust]
2020
rust_2018_idioms = { level = "warn", priority = -1 }
21+
22+
non_ascii_idents = "warn"
23+
trivial_numeric_casts = "warn"
2124
unnameable_types = "warn"
2225
unreachable_pub = "warn"
2326
unsafe_op_in_unsafe_fn = "warn"
@@ -26,11 +29,16 @@ unused_macro_rules = "warn"
2629
unused_qualifications = "warn"
2730

2831
[workspace.lints.clippy]
32+
allow_attributes_without_reason = "warn"
2933
bool_assert_comparison = "allow"
3034
branches_sharing_code = "allow"
35+
cast_possible_truncation = "warn"
36+
cast_possible_wrap = "warn"
37+
cast_sign_loss = "warn"
3138
checked_conversions = "warn"
3239
collapsible_else_if = "allow"
3340
collapsible_match = "allow"
41+
collection_is_never_read = "warn"
3442
create_dir = "warn"
3543
dbg_macro = "warn"
3644
debug_assert_with_mut_call = "warn"
@@ -43,8 +51,10 @@ explicit_into_iter_loop = "warn"
4351
fallible_impl_from = "warn"
4452
filter_map_next = "warn"
4553
flat_map_option = "warn"
54+
float_cmp = "warn"
4655
float_cmp_const = "warn"
4756
fn_params_excessive_bools = "warn"
57+
fn_to_numeric_cast_any = "warn"
4858
from_iter_instead_of_collect = "warn"
4959
if_same_then_else = "allow"
5060
implicit_clone = "warn"
@@ -61,10 +71,12 @@ linkedlist = "warn"
6171
lossy_float_literal = "warn"
6272
macro_use_imports = "warn"
6373
mem_forget = "warn"
74+
mismatching_type_param_order = "warn"
6475
mutex_integer = "warn"
6576
needless_continue = "allow"
6677
needless_for_each = "warn"
6778
negative_feature_names = "warn"
79+
partial_pub_fields = "warn"
6880
path_buf_push_overwrite = "warn"
6981
ptr_as_ptr = "warn"
7082
rc_mutex = "warn"
@@ -75,13 +87,19 @@ result_large_err = "allow"
7587
same_functions_in_if_condition = "warn"
7688
self_named_module_files = "warn"
7789
semicolon_if_nothing_returned = "warn"
90+
should_panic_without_expect = "warn"
7891
str_to_string = "warn"
7992
string_add = "warn"
8093
string_add_assign = "warn"
8194
string_lit_as_bytes = "warn"
8295
todo = "warn"
8396
trait_duplication_in_bounds = "warn"
97+
undocumented_unsafe_blocks = "warn"
8498
uninlined_format_args = "warn"
99+
unnecessary_safety_comment = "warn"
100+
unnecessary_safety_doc = "warn"
101+
unseparated_literal_suffix = "warn"
102+
use_self = "warn"
85103
verbose_file_reads = "warn"
86104
wildcard_imports = "warn"
87105
zero_sized_map_values = "warn"

0 commit comments

Comments
 (0)