Swap the category of the lint

This changes the lint from the suspicious category to the complexity category
This commit is contained in:
infrandomness 2022-04-08 21:59:59 +02:00
parent f8f144117d
commit cf83e18106
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,6 @@
LintId::of(loops::EMPTY_LOOP),
LintId::of(loops::FOR_LOOPS_OVER_FALLIBLES),
LintId::of(loops::MUT_RANGE_BOUND),
LintId::of(methods::OPTION_TAKE_ON_TEMPORARY),
LintId::of(methods::SUSPICIOUS_MAP),
LintId::of(mut_key::MUTABLE_KEY_TYPE),
LintId::of(octal_escapes::OCTAL_ESCAPES),

View File

@ -2177,7 +2177,7 @@
/// ```
#[clippy::version = "1.61.0"]
pub NEEDLESS_OPTION_TAKE,
suspicious,
complexity,
"using `.as_ref().take()` on a temporary value"
}