Skip to content

Commit 6b8e87b

Browse files
committed
Fix false-positive of redundant_clone and move to clippy::perf
1 parent 5f058d8 commit 6b8e87b

File tree

5 files changed

+413
-76
lines changed

5 files changed

+413
-76
lines changed

clippy_lints/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
863863
ranges::RANGE_MINUS_ONE,
864864
ranges::RANGE_PLUS_ONE,
865865
ranges::RANGE_ZIP_WITH_LEN,
866+
redundant_clone::REDUNDANT_CLONE,
866867
redundant_field_names::REDUNDANT_FIELD_NAMES,
867868
redundant_pattern_matching::REDUNDANT_PATTERN_MATCHING,
868869
redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES,
@@ -1167,6 +1168,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
11671168
methods::SINGLE_CHAR_PATTERN,
11681169
misc::CMP_OWNED,
11691170
mutex_atomic::MUTEX_ATOMIC,
1171+
redundant_clone::REDUNDANT_CLONE,
11701172
slow_vector_initialization::SLOW_VECTOR_INITIALIZATION,
11711173
trivially_copy_pass_by_ref::TRIVIALLY_COPY_PASS_BY_REF,
11721174
types::BOX_VEC,
@@ -1186,7 +1188,6 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
11861188
mutex_atomic::MUTEX_INTEGER,
11871189
needless_borrow::NEEDLESS_BORROW,
11881190
path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE,
1189-
redundant_clone::REDUNDANT_CLONE,
11901191
]);
11911192
}
11921193

0 commit comments

Comments
 (0)