Skip to content

Commit eaae523

Browse files
committed
Fix false-positive of redundant_clone and move to clippy::perf
1 parent 535bc1d commit eaae523

File tree

5 files changed

+407
-76
lines changed

5 files changed

+407
-76
lines changed

clippy_lints/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
856856
ranges::RANGE_MINUS_ONE,
857857
ranges::RANGE_PLUS_ONE,
858858
ranges::RANGE_ZIP_WITH_LEN,
859+
redundant_clone::REDUNDANT_CLONE,
859860
redundant_field_names::REDUNDANT_FIELD_NAMES,
860861
redundant_pattern_matching::REDUNDANT_PATTERN_MATCHING,
861862
redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES,
@@ -1158,6 +1159,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
11581159
methods::SINGLE_CHAR_PATTERN,
11591160
misc::CMP_OWNED,
11601161
mutex_atomic::MUTEX_ATOMIC,
1162+
redundant_clone::REDUNDANT_CLONE,
11611163
slow_vector_initialization::SLOW_VECTOR_INITIALIZATION,
11621164
trivially_copy_pass_by_ref::TRIVIALLY_COPY_PASS_BY_REF,
11631165
types::BOX_VEC,
@@ -1177,7 +1179,6 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
11771179
mutex_atomic::MUTEX_INTEGER,
11781180
needless_borrow::NEEDLESS_BORROW,
11791181
path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE,
1180-
redundant_clone::REDUNDANT_CLONE,
11811182
]);
11821183
}
11831184

0 commit comments

Comments
 (0)