@@ -53,7 +53,6 @@ opt-level = 2
5353# eframe = { path = "../egui/crates/eframe" }
5454
5555
56-
5756# ----------------------------------------------------------------------------------------
5857# Lints:
5958
@@ -89,23 +88,27 @@ allow_attributes = "warn"
8988as_ptr_cast_mut = " warn"
9089await_holding_lock = " warn"
9190bool_to_int_with_if = " warn"
91+ branches_sharing_code = " warn"
9292char_lit_as_u8 = " warn"
9393checked_conversions = " warn"
9494clear_with_drain = " warn"
9595cloned_instead_of_copied = " warn"
9696dbg_macro = " warn"
9797debug_assert_with_mut_call = " warn"
98+ default_union_representation = " warn"
9899derive_partial_eq_without_eq = " warn"
99- disallowed_macros = " warn" # See clippy.toml
100- disallowed_methods = " warn" # See clippy.toml
101- disallowed_names = " warn" # See clippy.toml
102- disallowed_script_idents = " warn" # See clippy.toml
103- disallowed_types = " warn" # See clippy.toml
104- doc_include_without_cfg = " warn"
100+ disallowed_macros = " warn" # See clippy.toml
101+ disallowed_methods = " warn" # See clippy.toml
102+ disallowed_names = " warn" # See clippy.toml
103+ disallowed_script_idents = " warn" # See clippy.toml
104+ disallowed_types = " warn" # See clippy.toml
105+ doc_comment_double_space_linebreaks = " warn"
105106doc_link_with_quotes = " warn"
106107doc_markdown = " warn"
108+ elidable_lifetime_names = " warn"
107109empty_enum = " warn"
108110empty_enum_variants_with_brackets = " warn"
111+ empty_line_after_outer_attr = " warn"
109112enum_glob_use = " warn"
110113equatable_if_let = " warn"
111114exit = " warn"
@@ -121,9 +124,14 @@ fn_params_excessive_bools = "warn"
121124fn_to_numeric_cast_any = " warn"
122125from_iter_instead_of_collect = " warn"
123126get_unwrap = " warn"
127+ if_let_mutex = " warn"
128+ ignore_without_reason = " warn"
124129implicit_clone = " warn"
130+ implied_bounds_in_impls = " warn"
125131imprecise_flops = " warn"
132+ inconsistent_struct_constructor = " warn"
126133index_refutable_slice = " warn"
134+ indexing_slicing = " warn"
127135inefficient_to_string = " warn"
128136infinite_loop = " warn"
129137into_iter_without_iter = " warn"
@@ -153,19 +161,20 @@ manual_instant_elapsed = "warn"
153161manual_is_power_of_two = " warn"
154162manual_is_variant_and = " warn"
155163manual_let_else = " warn"
164+ manual_midpoint = " warn"
156165manual_ok_or = " warn"
157166manual_string_new = " warn"
158167map_err_ignore = " warn"
159168map_flatten = " warn"
160169match_bool = " warn"
161- match_on_vec_items = " warn"
162170match_same_arms = " warn"
163171match_wild_err_arm = " warn"
164172match_wildcard_for_single_variants = " warn"
165173mem_forget = " warn"
166174mismatching_type_param_order = " warn"
167175missing_assert_message = " warn"
168176missing_enforced_import_renames = " warn"
177+ missing_errors_doc = " warn"
169178missing_safety_doc = " warn"
170179mixed_attributes_style = " warn"
171180mut_mut = " warn"
@@ -176,12 +185,16 @@ needless_for_each = "warn"
176185needless_pass_by_ref_mut = " warn"
177186needless_pass_by_value = " warn"
178187negative_feature_names = " warn"
188+ non_std_lazy_statics = " warn"
179189non_zero_suggestions = " warn"
180190nonstandard_macro_braces = " warn"
181191option_as_ref_cloned = " warn"
182192option_option = " warn"
183193path_buf_push_overwrite = " warn"
184194pathbuf_init_then_push = " warn"
195+ precedence_bits = " warn"
196+ print_stderr = " warn"
197+ print_stdout = " warn"
185198ptr_as_ptr = " warn"
186199ptr_cast_constness = " warn"
187200pub_underscore_fields = " warn"
@@ -191,13 +204,16 @@ readonly_write_lock = "warn"
191204redundant_type_annotations = " warn"
192205ref_as_ptr = " warn"
193206ref_option_ref = " warn"
207+ ref_patterns = " warn"
194208rest_pat_in_fully_bound_structs = " warn"
209+ return_and_then = " warn"
195210same_functions_in_if_condition = " warn"
196211semicolon_if_nothing_returned = " warn"
197212set_contains_or_insert = " warn"
198213should_panic_without_expect = " warn"
199214single_char_pattern = " warn"
200215single_match_else = " warn"
216+ single_option_map = " warn"
201217str_split_at_newline = " warn"
202218str_to_string = " warn"
203219string_add = " warn"
@@ -212,15 +228,20 @@ too_long_first_doc_paragraph = "warn"
212228too_many_lines = " warn"
213229trailing_empty_array = " warn"
214230trait_duplication_in_bounds = " warn"
231+ transmute_ptr_to_ptr = " warn"
215232tuple_array_conversions = " warn"
216233unchecked_duration_subtraction = " warn"
217234undocumented_unsafe_blocks = " warn"
218235unimplemented = " warn"
219236uninhabited_references = " warn"
220237uninlined_format_args = " warn"
221238unnecessary_box_returns = " warn"
239+ unnecessary_debug_formatting = " warn"
222240unnecessary_literal_bound = " warn"
241+ unnecessary_safety_comment = " warn"
223242unnecessary_safety_doc = " warn"
243+ unnecessary_self_imports = " warn"
244+ unnecessary_semicolon = " warn"
224245unnecessary_struct_initialization = " warn"
225246unnecessary_wraps = " warn"
226247unnested_or_patterns = " warn"
@@ -230,11 +251,12 @@ unused_self = "warn"
230251unused_trait_names = " warn"
231252unwrap_used = " warn"
232253use_self = " warn"
254+ useless_let_if_seq = " warn"
233255useless_transmute = " warn"
234256verbose_file_reads = " warn"
235257wildcard_dependencies = " warn"
236258wildcard_imports = " warn"
237259zero_sized_map_values = " warn"
238260
239- manual_range_contains = " allow" # this is better on 'allow'
240- map_unwrap_or = " allow" # this is better on 'allow'
261+ manual_range_contains = " allow" # this is better on 'allow'
262+ map_unwrap_or = " allow" # this is better on 'allow'
0 commit comments