Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 3953c53

Browse files
committed
change lint type from style to perf
1 parent e3afc72 commit 3953c53

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

clippy_lints/src/lib.register_perf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ store.register_group(true, "clippy::perf", Some("clippy_perf"), vec![
2626
LintId::of(slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
2727
LintId::of(types::BOX_COLLECTION),
2828
LintId::of(types::REDUNDANT_ALLOCATION),
29+
LintId::of(use_retain::USE_RETAIN),
2930
LintId::of(vec::USELESS_VEC),
3031
LintId::of(vec_init_then_push::VEC_INIT_THEN_PUSH),
3132
])

clippy_lints/src/lib.register_style.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
117117
LintId::of(unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME),
118118
LintId::of(unused_unit::UNUSED_UNIT),
119119
LintId::of(upper_case_acronyms::UPPER_CASE_ACRONYMS),
120-
LintId::of(use_retain::USE_RETAIN),
121120
LintId::of(write::PRINTLN_EMPTY_STRING),
122121
LintId::of(write::PRINT_LITERAL),
123122
LintId::of(write::PRINT_WITH_NEWLINE),

clippy_lints/src/use_retain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare_clippy_lint! {
4343
/// ```
4444
#[clippy::version = "1.63.0"]
4545
pub USE_RETAIN,
46-
style,
46+
perf,
4747
"`retain()` is simpler and the same functionalitys"
4848
}
4949
declare_lint_pass!(UseRetain => [USE_RETAIN]);

0 commit comments

Comments
 (0)