Skip to content

Commit 6489719

Browse files
committed
Fix false-positive of redundant_clone and move to clippy::perf
1 parent cdaa93d commit 6489719

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
@@ -858,6 +858,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
858858
ranges::RANGE_MINUS_ONE,
859859
ranges::RANGE_PLUS_ONE,
860860
ranges::RANGE_ZIP_WITH_LEN,
861+
redundant_clone::REDUNDANT_CLONE,
861862
redundant_field_names::REDUNDANT_FIELD_NAMES,
862863
redundant_pattern_matching::REDUNDANT_PATTERN_MATCHING,
863864
redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES,
@@ -1159,6 +1160,7 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
11591160
methods::SINGLE_CHAR_PATTERN,
11601161
misc::CMP_OWNED,
11611162
mutex_atomic::MUTEX_ATOMIC,
1163+
redundant_clone::REDUNDANT_CLONE,
11621164
slow_vector_initialization::SLOW_VECTOR_INITIALIZATION,
11631165
trivially_copy_pass_by_ref::TRIVIALLY_COPY_PASS_BY_REF,
11641166
types::BOX_VEC,
@@ -1178,7 +1180,6 @@ pub fn register_plugins(reg: &mut rustc_driver::plugin::Registry<'_>, conf: &Con
11781180
mutex_atomic::MUTEX_INTEGER,
11791181
needless_borrow::NEEDLESS_BORROW,
11801182
path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE,
1181-
redundant_clone::REDUNDANT_CLONE,
11821183
]);
11831184
}
11841185

0 commit comments

Comments
 (0)