Skip to content

Commit 301ef6b

Browse files
committed
Fix false-positive of redundant_clone and move to clippy::perf
1 parent 737f0a6 commit 301ef6b

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
@@ -864,6 +864,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
864864
ranges::RANGE_MINUS_ONE,
865865
ranges::RANGE_PLUS_ONE,
866866
ranges::RANGE_ZIP_WITH_LEN,
867+
redundant_clone::REDUNDANT_CLONE,
867868
redundant_field_names::REDUNDANT_FIELD_NAMES,
868869
redundant_pattern_matching::REDUNDANT_PATTERN_MATCHING,
869870
redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES,
@@ -1169,6 +1170,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
11691170
methods::SINGLE_CHAR_PATTERN,
11701171
misc::CMP_OWNED,
11711172
mutex_atomic::MUTEX_ATOMIC,
1173+
redundant_clone::REDUNDANT_CLONE,
11721174
slow_vector_initialization::SLOW_VECTOR_INITIALIZATION,
11731175
trivially_copy_pass_by_ref::TRIVIALLY_COPY_PASS_BY_REF,
11741176
types::BOX_VEC,
@@ -1188,7 +1190,6 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
11881190
mutex_atomic::MUTEX_INTEGER,
11891191
needless_borrow::NEEDLESS_BORROW,
11901192
path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE,
1191-
redundant_clone::REDUNDANT_CLONE,
11921193
]);
11931194
}
11941195

0 commit comments

Comments
 (0)