mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Enable more clippy lints (#7801)
This commit is contained in:
@@ -186,6 +186,7 @@ checked_conversions = "warn"
|
|||||||
clear_with_drain = "warn"
|
clear_with_drain = "warn"
|
||||||
clone_on_ref_ptr = "warn"
|
clone_on_ref_ptr = "warn"
|
||||||
cloned_instead_of_copied = "warn"
|
cloned_instead_of_copied = "warn"
|
||||||
|
coerce_container_to_any = "warn"
|
||||||
dbg_macro = "warn"
|
dbg_macro = "warn"
|
||||||
debug_assert_with_mut_call = "warn"
|
debug_assert_with_mut_call = "warn"
|
||||||
default_union_representation = "warn"
|
default_union_representation = "warn"
|
||||||
@@ -195,7 +196,9 @@ disallowed_methods = "warn" # See clippy.toml
|
|||||||
disallowed_names = "warn" # See clippy.toml
|
disallowed_names = "warn" # See clippy.toml
|
||||||
disallowed_script_idents = "warn" # See clippy.toml
|
disallowed_script_idents = "warn" # See clippy.toml
|
||||||
disallowed_types = "warn" # See clippy.toml
|
disallowed_types = "warn" # See clippy.toml
|
||||||
|
doc_broken_link = "warn"
|
||||||
doc_comment_double_space_linebreaks = "warn"
|
doc_comment_double_space_linebreaks = "warn"
|
||||||
|
doc_include_without_cfg = "warn"
|
||||||
doc_link_with_quotes = "warn"
|
doc_link_with_quotes = "warn"
|
||||||
doc_markdown = "warn"
|
doc_markdown = "warn"
|
||||||
elidable_lifetime_names = "warn"
|
elidable_lifetime_names = "warn"
|
||||||
@@ -228,6 +231,7 @@ inefficient_to_string = "warn"
|
|||||||
infinite_loop = "warn"
|
infinite_loop = "warn"
|
||||||
into_iter_without_iter = "warn"
|
into_iter_without_iter = "warn"
|
||||||
invalid_upcast_comparisons = "warn"
|
invalid_upcast_comparisons = "warn"
|
||||||
|
ip_constant = "warn"
|
||||||
iter_filter_is_ok = "warn"
|
iter_filter_is_ok = "warn"
|
||||||
iter_filter_is_some = "warn"
|
iter_filter_is_some = "warn"
|
||||||
iter_not_returning_iterator = "warn"
|
iter_not_returning_iterator = "warn"
|
||||||
@@ -300,6 +304,7 @@ ref_patterns = "warn"
|
|||||||
rest_pat_in_fully_bound_structs = "warn"
|
rest_pat_in_fully_bound_structs = "warn"
|
||||||
return_and_then = "warn"
|
return_and_then = "warn"
|
||||||
same_functions_in_if_condition = "warn"
|
same_functions_in_if_condition = "warn"
|
||||||
|
self_only_used_in_recursion = "warn"
|
||||||
semicolon_if_nothing_returned = "warn"
|
semicolon_if_nothing_returned = "warn"
|
||||||
set_contains_or_insert = "warn"
|
set_contains_or_insert = "warn"
|
||||||
single_char_pattern = "warn"
|
single_char_pattern = "warn"
|
||||||
@@ -349,6 +354,7 @@ zero_sized_map_values = "warn"
|
|||||||
|
|
||||||
|
|
||||||
# TODO(emilk): maybe enable more of these lints?
|
# TODO(emilk): maybe enable more of these lints?
|
||||||
|
cast_possible_wrap = "allow"
|
||||||
comparison_chain = "allow"
|
comparison_chain = "allow"
|
||||||
should_panic_without_expect = "allow"
|
should_panic_without_expect = "allow"
|
||||||
too_many_lines = "allow"
|
too_many_lines = "allow"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#![doc = include_str!("../README.md")]
|
#![cfg_attr(doc, doc = include_str!("../README.md"))]
|
||||||
//!
|
//!
|
||||||
//! ## Feature flags
|
//! ## Feature flags
|
||||||
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
|
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
|
||||||
|
|||||||
Reference in New Issue
Block a user