From 4169d2c1963b5a4732f68a73b3068b6c4e50408f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 21 Dec 2025 21:57:29 +0100 Subject: [PATCH] Enable more clippy lints (#7801) --- Cargo.toml | 6 ++++++ crates/egui_kittest/src/lib.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 09fbfd4ad..470644bb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -186,6 +186,7 @@ checked_conversions = "warn" clear_with_drain = "warn" clone_on_ref_ptr = "warn" cloned_instead_of_copied = "warn" +coerce_container_to_any = "warn" dbg_macro = "warn" debug_assert_with_mut_call = "warn" default_union_representation = "warn" @@ -195,7 +196,9 @@ disallowed_methods = "warn" # See clippy.toml disallowed_names = "warn" # See clippy.toml disallowed_script_idents = "warn" # See clippy.toml disallowed_types = "warn" # See clippy.toml +doc_broken_link = "warn" doc_comment_double_space_linebreaks = "warn" +doc_include_without_cfg = "warn" doc_link_with_quotes = "warn" doc_markdown = "warn" elidable_lifetime_names = "warn" @@ -228,6 +231,7 @@ inefficient_to_string = "warn" infinite_loop = "warn" into_iter_without_iter = "warn" invalid_upcast_comparisons = "warn" +ip_constant = "warn" iter_filter_is_ok = "warn" iter_filter_is_some = "warn" iter_not_returning_iterator = "warn" @@ -300,6 +304,7 @@ ref_patterns = "warn" rest_pat_in_fully_bound_structs = "warn" return_and_then = "warn" same_functions_in_if_condition = "warn" +self_only_used_in_recursion = "warn" semicolon_if_nothing_returned = "warn" set_contains_or_insert = "warn" single_char_pattern = "warn" @@ -349,6 +354,7 @@ zero_sized_map_values = "warn" # TODO(emilk): maybe enable more of these lints? +cast_possible_wrap = "allow" comparison_chain = "allow" should_panic_without_expect = "allow" too_many_lines = "allow" diff --git a/crates/egui_kittest/src/lib.rs b/crates/egui_kittest/src/lib.rs index bc53c2fbf..b9f7dc7c2 100644 --- a/crates/egui_kittest/src/lib.rs +++ b/crates/egui_kittest/src/lib.rs @@ -1,4 +1,4 @@ -#![doc = include_str!("../README.md")] +#![cfg_attr(doc, doc = include_str!("../README.md"))] //! //! ## Feature flags #![cfg_attr(feature = "document-features", doc = document_features::document_features!())]