From 0f9bf45983f23bf3f6b77540d398b8713b425c82 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 6 Mar 2021 22:10:27 +0100 Subject: [PATCH 1/7] Add clippy::map_err_ignore --- lints.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lints.rs b/lints.rs index 261c528..e40c47c 100644 --- a/lints.rs +++ b/lints.rs @@ -1,4 +1,4 @@ -// BEGIN - Embark standard lints v0.2 +// BEGIN - Embark standard lints v0.3 // do not change or add/remove here, but one can add exceptions after this section // for more info see: #![deny(unsafe_code)] @@ -21,6 +21,7 @@ clippy::linkedlist, clippy::lossy_float_literal, clippy::macro_use_imports, + clippy::map_err_ignore, clippy::map_flatten, clippy::map_unwrap_or, clippy::match_on_vec_items, @@ -43,6 +44,6 @@ nonstandard_style, rust_2018_idioms )] -// END - Embark standard lints v0.2 +// END - Embark standard lints v0.3 // crate-specific exceptions: #![allow()] \ No newline at end of file From 8932715571a0fc2792be4800e94f0e83359f86cc Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 6 Mar 2021 22:54:37 +0100 Subject: [PATCH 2/7] Add clippy::large_types_passed_by_value --- lints.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lints.rs b/lints.rs index e40c47c..86b8ec4 100644 --- a/lints.rs +++ b/lints.rs @@ -17,6 +17,7 @@ clippy::if_let_mutex, clippy::imprecise_flops, clippy::inefficient_to_string, + clippy::large_types_passed_by_value, clippy::let_unit_value, clippy::linkedlist, clippy::lossy_float_literal, From 89d97c2aeaec59485b29991c6d6e5d9f63e2fa49 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 6 Mar 2021 23:14:29 +0100 Subject: [PATCH 3/7] Add string_add & string_add_assign --- lints.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lints.rs b/lints.rs index 86b8ec4..6504cdd 100644 --- a/lints.rs +++ b/lints.rs @@ -35,6 +35,8 @@ clippy::pub_enum_variant_names, clippy::ref_option_ref, clippy::rest_pat_in_fully_bound_structs, + clippy::string_add_assign, + clippy::string_add, clippy::string_to_string, clippy::suboptimal_flops, clippy::todo, From e2a7b76d7cfb159cbc11716d07700e6594351a05 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 9 Mar 2021 21:45:33 +0100 Subject: [PATCH 4/7] Add match_same_arms --- lints.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lints.rs b/lints.rs index 6504cdd..8e5fae0 100644 --- a/lints.rs +++ b/lints.rs @@ -26,6 +26,7 @@ clippy::map_flatten, clippy::map_unwrap_or, clippy::match_on_vec_items, + clippy::match_same_arms, clippy::match_wildcard_for_single_variants, clippy::mem_forget, clippy::mismatched_target_os, From 3a78303f6cee8daeaa4e64bc3b7fa4c0b0bbf384 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 9 Mar 2021 21:45:49 +0100 Subject: [PATCH 5/7] Add needless_pass_by_value --- lints.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lints.rs b/lints.rs index 8e5fae0..2dc75e4 100644 --- a/lints.rs +++ b/lints.rs @@ -32,6 +32,7 @@ clippy::mismatched_target_os, clippy::needless_borrow, clippy::needless_continue, + clippy::needless_pass_by_value, clippy::option_option, clippy::pub_enum_variant_names, clippy::ref_option_ref, From 21c0fe1fff9d26b52f11e032698d60870cbeefc4 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 9 Mar 2021 21:45:57 +0100 Subject: [PATCH 6/7] Add unimplemented --- lints.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lints.rs b/lints.rs index 2dc75e4..48613a9 100644 --- a/lints.rs +++ b/lints.rs @@ -42,6 +42,7 @@ clippy::string_to_string, clippy::suboptimal_flops, clippy::todo, + clippy::unimplemented, clippy::unnested_or_patterns, clippy::unused_self, clippy::verbose_file_reads, From 135ec0c57a5798c12ef757bd1885ab6ca110dc0f Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 9 Mar 2021 23:08:43 +0100 Subject: [PATCH 7/7] Revert "Add needless_pass_by_value" This reverts commit 3a78303f6cee8daeaa4e64bc3b7fa4c0b0bbf384. --- lints.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lints.rs b/lints.rs index 48613a9..eda95e5 100644 --- a/lints.rs +++ b/lints.rs @@ -32,7 +32,6 @@ clippy::mismatched_target_os, clippy::needless_borrow, clippy::needless_continue, - clippy::needless_pass_by_value, clippy::option_option, clippy::pub_enum_variant_names, clippy::ref_option_ref,