Skip to content

Commit cf83e18

Browse files
committed
Swap the category of the lint
This changes the lint from the suspicious category to the complexity category
1 parent f8f1441 commit cf83e18

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

clippy_lints/src/lib.register_suspicious.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ store.register_group(true, "clippy::suspicious", Some("clippy_suspicious"), vec!
2222
LintId::of(loops::EMPTY_LOOP),
2323
LintId::of(loops::FOR_LOOPS_OVER_FALLIBLES),
2424
LintId::of(loops::MUT_RANGE_BOUND),
25-
LintId::of(methods::OPTION_TAKE_ON_TEMPORARY),
2625
LintId::of(methods::SUSPICIOUS_MAP),
2726
LintId::of(mut_key::MUTABLE_KEY_TYPE),
2827
LintId::of(octal_escapes::OCTAL_ESCAPES),

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ declare_clippy_lint! {
21772177
/// ```
21782178
#[clippy::version = "1.61.0"]
21792179
pub NEEDLESS_OPTION_TAKE,
2180-
suspicious,
2180+
complexity,
21812181
"using `.as_ref().take()` on a temporary value"
21822182
}
21832183

0 commit comments

Comments
 (0)