mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Enable and fix some more clippy lints (#7426)
One can never have too many lints
This commit is contained in:
16
Cargo.toml
16
Cargo.toml
@@ -159,8 +159,8 @@ disallowed_types = "warn" # See clippy.toml
|
||||
doc_link_with_quotes = "warn"
|
||||
doc_markdown = "warn"
|
||||
empty_enum = "warn"
|
||||
empty_line_after_outer_attr = "warn"
|
||||
empty_enum_variants_with_brackets = "warn"
|
||||
empty_line_after_outer_attr = "warn"
|
||||
enum_glob_use = "warn"
|
||||
equatable_if_let = "warn"
|
||||
exit = "warn"
|
||||
@@ -180,6 +180,7 @@ if_let_mutex = "warn"
|
||||
implicit_clone = "warn"
|
||||
implied_bounds_in_impls = "warn"
|
||||
imprecise_flops = "warn"
|
||||
inconsistent_struct_constructor = "warn"
|
||||
index_refutable_slice = "warn"
|
||||
inefficient_to_string = "warn"
|
||||
infinite_loop = "warn"
|
||||
@@ -295,8 +296,21 @@ verbose_file_reads = "warn"
|
||||
wildcard_dependencies = "warn"
|
||||
zero_sized_map_values = "warn"
|
||||
|
||||
# Enable these when we update MSRV:
|
||||
# doc_comment_double_space_linebreaks = "warn"
|
||||
# elidable_lifetime_names = "warn"
|
||||
# ignore_without_reason = "warn"
|
||||
# manual_midpoint = "warn"
|
||||
# non_std_lazy_statics = "warn"
|
||||
# precedence_bits = "warn"
|
||||
# return_and_then = "warn"
|
||||
# single_option_map = "warn"
|
||||
# unnecessary_debug_formatting = "warn"
|
||||
# unnecessary_semicolon = "warn"
|
||||
|
||||
|
||||
# TODO(emilk): maybe enable more of these lints?
|
||||
comparison_chain = "allow"
|
||||
should_panic_without_expect = "allow"
|
||||
too_many_lines = "allow"
|
||||
unwrap_used = "allow" # TODO(emilk): We really wanna warn on this one
|
||||
|
||||
Reference in New Issue
Block a user