Skip to content

Commit 4169d2c

Browse files
authored
Enable more clippy lints (#7801)
1 parent 661d5f9 commit 4169d2c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ checked_conversions = "warn"
186186
clear_with_drain = "warn"
187187
clone_on_ref_ptr = "warn"
188188
cloned_instead_of_copied = "warn"
189+
coerce_container_to_any = "warn"
189190
dbg_macro = "warn"
190191
debug_assert_with_mut_call = "warn"
191192
default_union_representation = "warn"
@@ -195,7 +196,9 @@ disallowed_methods = "warn" # See clippy.toml
195196
disallowed_names = "warn" # See clippy.toml
196197
disallowed_script_idents = "warn" # See clippy.toml
197198
disallowed_types = "warn" # See clippy.toml
199+
doc_broken_link = "warn"
198200
doc_comment_double_space_linebreaks = "warn"
201+
doc_include_without_cfg = "warn"
199202
doc_link_with_quotes = "warn"
200203
doc_markdown = "warn"
201204
elidable_lifetime_names = "warn"
@@ -228,6 +231,7 @@ inefficient_to_string = "warn"
228231
infinite_loop = "warn"
229232
into_iter_without_iter = "warn"
230233
invalid_upcast_comparisons = "warn"
234+
ip_constant = "warn"
231235
iter_filter_is_ok = "warn"
232236
iter_filter_is_some = "warn"
233237
iter_not_returning_iterator = "warn"
@@ -300,6 +304,7 @@ ref_patterns = "warn"
300304
rest_pat_in_fully_bound_structs = "warn"
301305
return_and_then = "warn"
302306
same_functions_in_if_condition = "warn"
307+
self_only_used_in_recursion = "warn"
303308
semicolon_if_nothing_returned = "warn"
304309
set_contains_or_insert = "warn"
305310
single_char_pattern = "warn"
@@ -349,6 +354,7 @@ zero_sized_map_values = "warn"
349354

350355

351356
# TODO(emilk): maybe enable more of these lints?
357+
cast_possible_wrap = "allow"
352358
comparison_chain = "allow"
353359
should_panic_without_expect = "allow"
354360
too_many_lines = "allow"

crates/egui_kittest/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = include_str!("../README.md")]
1+
#![cfg_attr(doc, doc = include_str!("../README.md"))]
22
//!
33
//! ## Feature flags
44
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]

0 commit comments

Comments
 (0)