about summary refs log tree commit diff
path: root/clippy_lints
diff options
context:
space:
mode:
authorkyoto7250 <50972773+kyoto7250@users.noreply.github.com>2022-06-09 22:25:07 +0900
committerkyoto7250 <50972773+kyoto7250@users.noreply.github.com>2022-06-27 08:11:58 +0900
commit3953c530f4b2cfbe00864ae824fe4a543066a7f4 (patch)
treedc72c7bc28874f8df8d21235347b94776e992fe4 /clippy_lints
parente3afc72caad1132ecad4ba75fc810a3ad309b49e (diff)
downloadrust-3953c530f4b2cfbe00864ae824fe4a543066a7f4.tar.gz
rust-3953c530f4b2cfbe00864ae824fe4a543066a7f4.zip
change lint type from style to perf
Diffstat (limited to 'clippy_lints')
-rw-r--r--clippy_lints/src/lib.register_perf.rs1
-rw-r--r--clippy_lints/src/lib.register_style.rs1
-rw-r--r--clippy_lints/src/use_retain.rs2
3 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/lib.register_perf.rs b/clippy_lints/src/lib.register_perf.rs
index 82431863e6c..b9d8ec72541 100644
--- a/clippy_lints/src/lib.register_perf.rs
+++ b/clippy_lints/src/lib.register_perf.rs
@@ -26,6 +26,7 @@ store.register_group(true, "clippy::perf", Some("clippy_perf"), vec![
     LintId::of(slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
     LintId::of(types::BOX_COLLECTION),
     LintId::of(types::REDUNDANT_ALLOCATION),
+    LintId::of(use_retain::USE_RETAIN),
     LintId::of(vec::USELESS_VEC),
     LintId::of(vec_init_then_push::VEC_INIT_THEN_PUSH),
 ])
diff --git a/clippy_lints/src/lib.register_style.rs b/clippy_lints/src/lib.register_style.rs
index 3b3505f1e19..d52ec50e542 100644
--- a/clippy_lints/src/lib.register_style.rs
+++ b/clippy_lints/src/lib.register_style.rs
@@ -117,7 +117,6 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
     LintId::of(unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME),
     LintId::of(unused_unit::UNUSED_UNIT),
     LintId::of(upper_case_acronyms::UPPER_CASE_ACRONYMS),
-    LintId::of(use_retain::USE_RETAIN),
     LintId::of(write::PRINTLN_EMPTY_STRING),
     LintId::of(write::PRINT_LITERAL),
     LintId::of(write::PRINT_WITH_NEWLINE),
diff --git a/clippy_lints/src/use_retain.rs b/clippy_lints/src/use_retain.rs
index d2479168ada..b55e1006aac 100644
--- a/clippy_lints/src/use_retain.rs
+++ b/clippy_lints/src/use_retain.rs
@@ -43,7 +43,7 @@ declare_clippy_lint! {
     /// ```
     #[clippy::version = "1.63.0"]
     pub USE_RETAIN,
-    style,
+    perf,
     "`retain()` is simpler and the same functionalitys"
 }
 declare_lint_pass!(UseRetain => [USE_RETAIN]);