Swap the category of the lint
This changes the lint from the suspicious category to the complexity category
This commit is contained in:
parent
f8f144117d
commit
cf83e18106
@ -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),
|
||||
|
@ -2177,7 +2177,7 @@
|
||||
/// ```
|
||||
#[clippy::version = "1.61.0"]
|
||||
pub NEEDLESS_OPTION_TAKE,
|
||||
suspicious,
|
||||
complexity,
|
||||
"using `.as_ref().take()` on a temporary value"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user