Skip to content

Commit

Permalink
clippy::redundant_locals is not a correctness lint
Browse files Browse the repository at this point in the history
Even its documentation says so. According to the documentation, it might
either be a "suspicious" or a "perf" lint.
  • Loading branch information
hrxi committed Dec 14, 2024
1 parent ff4a26d commit 221dc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/redundant_locals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ declare_clippy_lint! {
/// ```
#[clippy::version = "1.73.0"]
pub REDUNDANT_LOCALS,
correctness,
suspicious,
"redundant redefinition of a local binding"
}
declare_lint_pass!(RedundantLocals => [REDUNDANT_LOCALS]);
Expand Down

0 comments on commit 221dc38

Please sign in to comment.