2
2
name = " aoc"
3
3
version = " 2023.12.25"
4
4
edition = " 2021"
5
- rust-version = " 1.77 "
5
+ rust-version = " 1.78 "
6
6
7
7
[features ]
8
8
frivolity = []
@@ -13,61 +13,78 @@ private_intra_doc_links = "allow"
13
13
[lints .rust ]
14
14
absolute_paths_not_starting_with_crate = " warn"
15
15
box_pointers = " warn"
16
- dead_code = " warn"
17
16
elided_lifetimes_in_paths = " warn"
18
17
explicit_outlives_requirements = " warn"
19
18
ffi_unwind_calls = " warn"
20
- keyword_idents = " warn"
21
19
let_underscore_drop = " warn"
22
20
macro_use_extern_crate = " warn"
23
21
meta_variable_misuse = " warn"
24
22
missing_abi = " warn"
23
+ missing_copy_implementations = " allow"
24
+ missing_debug_implementations = " allow"
25
+ missing_docs = " allow"
25
26
non_ascii_idents = " warn"
26
- pointer_structural_match = " warn"
27
- private_bounds = " warn"
28
- private_interfaces = " warn"
27
+ non_local_definitions = " warn"
29
28
single_use_lifetimes = " warn"
30
29
trivial_casts = " warn"
31
30
trivial_numeric_casts = " warn"
31
+ unit_bindings = " warn"
32
32
unreachable_pub = " warn"
33
33
unsafe_code = " warn"
34
34
unsafe_op_in_unsafe_fn = " warn"
35
+ unstable_features = " warn"
35
36
unused_crate_dependencies = " warn"
36
37
unused_extern_crates = " warn"
37
38
unused_import_braces = " warn"
38
39
unused_lifetimes = " warn"
39
40
unused_macro_rules = " warn"
40
41
unused_qualifications = " warn"
42
+ unused_results = " allow"
41
43
variant_size_differences = " warn"
42
44
43
45
[lints .clippy ]
44
46
absolute_paths = " warn"
45
47
alloc_instead_of_core = " warn"
46
48
allow_attributes = " warn"
49
+ allow_attributes_without_reason = " warn"
50
+ arithmetic_side_effects = " allow"
51
+ as_conversions = " allow"
47
52
as_underscore = " warn"
48
53
assertions_on_result_states = " warn"
54
+ big_endian_bytes = " allow"
49
55
bool_to_int_with_if = " warn"
50
56
borrow_as_ptr = " warn"
57
+ cargo_common_metadata = " allow"
51
58
case_sensitive_file_extension_comparisons = " warn"
59
+ cast_lossless = " allow"
60
+ cast_possible_truncation = " allow"
61
+ cast_possible_wrap = " allow"
52
62
cast_precision_loss = " warn"
53
63
cast_ptr_alignment = " warn"
64
+ cast_sign_loss = " allow"
54
65
checked_conversions = " warn"
55
66
clone_on_ref_ptr = " warn"
56
67
cloned_instead_of_copied = " warn"
57
68
copy_iterator = " warn"
58
69
create_dir = " warn"
59
70
dbg_macro = " warn"
60
71
decimal_literal_representation = " warn"
72
+ default_numeric_fallback = " allow"
61
73
default_trait_access = " warn"
62
74
default_union_representation = " warn"
75
+ deref_by_slicing = " allow"
63
76
disallowed_script_idents = " warn"
64
77
doc_link_with_quotes = " warn"
65
78
doc_markdown = " warn"
79
+ else_if_without_else = " allow"
66
80
empty_drop = " warn"
67
81
empty_enum = " warn"
68
82
empty_enum_variants_with_brackets = " warn"
69
83
empty_structs_with_brackets = " warn"
84
+ enum_glob_use = " allow"
70
85
error_impl_error = " warn"
86
+ exhaustive_enums = " allow"
87
+ exhaustive_structs = " allow"
71
88
exit = " warn"
72
89
expect_used = " warn"
73
90
expl_impl_clone_on_copy = " warn"
@@ -85,27 +102,40 @@ fn_to_numeric_cast_any = "warn"
85
102
format_push_string = " warn"
86
103
from_iter_instead_of_collect = " warn"
87
104
get_unwrap = " warn"
105
+ host_endian_bytes = " allow"
88
106
if_not_else = " warn"
89
107
if_then_some_else_none = " warn"
90
108
ignored_unit_patterns = " warn"
91
109
impl_trait_in_params = " warn"
92
110
implicit_clone = " warn"
111
+ implicit_hasher = " allow"
112
+ implicit_return = " allow"
93
113
inconsistent_struct_constructor = " warn"
94
114
index_refutable_slice = " warn"
115
+ indexing_slicing = " allow"
95
116
inefficient_to_string = " warn"
96
117
infinite_loop = " warn"
97
118
inline_always = " warn"
119
+ inline_asm_x86_att_syntax = " warn"
120
+ inline_asm_x86_intel_syntax = " warn"
121
+ integer_division = " allow"
122
+ into_iter_without_iter = " warn"
98
123
invalid_upcast_comparisons = " warn"
99
124
items_after_statements = " warn"
100
125
iter_filter_is_ok = " warn"
101
126
iter_filter_is_some = " warn"
102
127
iter_not_returning_iterator = " warn"
128
+ iter_over_hash_type = " allow"
129
+ iter_without_into_iter = " warn"
103
130
large_digit_groups = " warn"
104
131
large_futures = " warn"
105
132
large_include_file = " warn"
106
133
large_stack_arrays = " warn"
107
134
large_types_passed_by_value = " warn"
135
+ let_underscore_must_use = " allow"
136
+ let_underscore_untyped = " warn"
108
137
linkedlist = " warn"
138
+ little_endian_bytes = " allow"
109
139
lossy_float_literal = " warn"
110
140
macro_use_imports = " warn"
111
141
manual_assert = " warn"
@@ -115,43 +145,64 @@ manual_is_variant_and = "warn"
115
145
manual_let_else = " warn"
116
146
manual_ok_or = " warn"
117
147
manual_string_new = " warn"
148
+ many_single_char_names = " allow"
118
149
map_err_ignore = " warn"
119
150
map_unwrap_or = " warn"
120
151
match_bool = " warn"
152
+ match_on_vec_items = " allow"
121
153
match_same_arms = " warn"
122
154
match_wild_err_arm = " warn"
123
155
match_wildcard_for_single_variants = " warn"
124
156
maybe_infinite_iter = " warn"
125
157
mem_forget = " warn"
158
+ min_ident_chars = " allow"
126
159
mismatching_type_param_order = " warn"
127
- missing_enforced_import_renames = " warn"
160
+ missing_assert_message = " allow"
161
+ missing_asserts_for_indexing = " allow"
162
+ missing_docs_in_private_items = " allow"
128
163
missing_errors_doc = " warn"
129
164
missing_fields_in_debug = " warn"
165
+ missing_inline_in_public_items = " allow"
166
+ missing_panics_doc = " allow"
167
+ missing_trait_methods = " allow"
130
168
mixed_read_write_in_expression = " warn"
131
169
mod_module_files = " warn"
170
+ module_name_repetitions = " allow"
171
+ modulo_arithmetic = " allow"
132
172
multiple_crate_versions = " warn"
133
173
multiple_inherent_impl = " warn"
134
174
multiple_unsafe_ops_per_block = " warn"
175
+ must_use_candidate = " allow"
135
176
mut_mut = " warn"
136
177
mutex_atomic = " warn"
178
+ naive_bytecount = " allow"
137
179
needless_bitwise_bool = " warn"
138
180
needless_continue = " warn"
139
181
needless_for_each = " warn"
140
182
needless_pass_by_value = " warn"
183
+ needless_raw_string_hashes = " warn"
141
184
needless_raw_strings = " warn"
142
185
negative_feature_names = " warn"
143
186
no_effect_underscore_binding = " warn"
144
187
no_mangle_with_rust_abi = " warn"
188
+ non_ascii_literal = " allow"
145
189
option_as_ref_cloned = " warn"
146
190
option_option = " warn"
191
+ panic = " allow"
147
192
panic_in_result_fn = " warn"
148
193
partial_pub_fields = " warn"
194
+ pattern_type_mismatch = " allow"
195
+ print_stderr = " allow"
196
+ print_stdout = " allow"
149
197
ptr_as_ptr = " warn"
150
198
ptr_cast_constness = " warn"
151
199
pub_underscore_fields = " warn"
152
200
pub_use = " warn"
153
201
pub_with_shorthand = " warn"
202
+ pub_without_shorthand = " warn"
203
+ question_mark_used = " allow"
154
204
range_minus_one = " warn"
205
+ range_plus_one = " allow"
155
206
rc_buffer = " warn"
156
207
rc_mutex = " warn"
157
208
redundant_closure_for_method_calls = " warn"
@@ -161,21 +212,39 @@ redundant_type_annotations = "warn"
161
212
ref_as_ptr = " warn"
162
213
ref_binding_to_reference = " warn"
163
214
ref_option_ref = " warn"
215
+ ref_patterns = " warn"
164
216
rest_pat_in_fully_bound_structs = " warn"
165
217
return_self_not_must_use = " warn"
166
218
same_functions_in_if_condition = " warn"
219
+ same_name_method = " warn"
220
+ self_named_module_files = " warn"
167
221
semicolon_if_nothing_returned = " warn"
168
222
semicolon_inside_block = " warn"
223
+ semicolon_outside_block = " warn"
224
+ separated_literal_suffix = " allow"
225
+ shadow_reuse = " allow"
226
+ shadow_same = " allow"
227
+ shadow_unrelated = " allow"
169
228
should_panic_without_expect = " warn"
229
+ similar_names = " allow"
230
+ single_call_fn = " allow"
231
+ single_char_lifetime_names = " allow"
232
+ single_char_pattern = " warn"
170
233
single_match_else = " warn"
171
234
stable_sort_primitive = " warn"
235
+ std_instead_of_alloc = " allow"
236
+ std_instead_of_core = " allow"
237
+ str_split_at_newline = " warn"
238
+ str_to_string = " allow"
172
239
string_add = " warn"
173
240
string_add_assign = " warn"
174
241
string_lit_chars_any = " warn"
242
+ string_slice = " allow"
243
+ string_to_string = " allow"
175
244
struct_excessive_bools = " warn"
176
245
struct_field_names = " warn"
177
- str_split_at_newline = " warn"
178
246
suspicious_xor_used_as_pow = " warn"
247
+ tests_outside_test_module = " allow"
179
248
todo = " warn"
180
249
too_many_lines = " warn"
181
250
transmute_ptr_to_ptr = " warn"
@@ -185,25 +254,28 @@ unchecked_duration_subtraction = "warn"
185
254
undocumented_unsafe_blocks = " warn"
186
255
unicode_not_nfc = " warn"
187
256
unimplemented = " warn"
188
- uninhabited_references = " warn"
189
257
uninlined_format_args = " warn"
190
258
unnecessary_box_returns = " warn"
191
- unnecessary_fallible_conversions = " warn"
192
259
unnecessary_join = " warn"
193
260
unnecessary_safety_comment = " warn"
194
261
unnecessary_safety_doc = " warn"
195
262
unnecessary_self_imports = " warn"
196
263
unnecessary_wraps = " warn"
197
264
unneeded_field_pattern = " warn"
198
265
unnested_or_patterns = " warn"
266
+ unreachable = " allow"
267
+ unreadable_literal = " allow"
199
268
unsafe_derive_deserialize = " warn"
200
269
unseparated_literal_suffix = " warn"
201
270
unused_async = " warn"
202
- unused_enumerate_index = " warn"
203
271
unused_self = " warn"
272
+ unwrap_in_result = " allow"
273
+ unwrap_used = " allow"
274
+ use_debug = " warn"
204
275
used_underscore_binding = " warn"
205
276
verbose_bit_mask = " warn"
206
277
verbose_file_reads = " warn"
207
- waker_clone_wake = " warn"
208
278
wildcard_dependencies = " warn"
279
+ wildcard_enum_match_arm = " allow"
280
+ wildcard_imports = " allow"
209
281
zero_sized_map_values = " warn"
0 commit comments