We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2533f56 commit 325d0b6Copy full SHA for 325d0b6
clippy_lints/src/methods/mod.rs
@@ -2559,7 +2559,7 @@ fn lint_map_or_none<'a, 'tcx>(
2559
return;
2560
}
2561
2562
- let (lint, msg, instead, hint) = {
+ let (lint_name, msg, instead, hint) = {
2563
let default_arg_is_none = if let hir::ExprKind::Path(ref qpath) = map_or_args[1].kind {
2564
match_qpath(qpath, &paths::OPTION_NONE)
2565
} else {
@@ -2606,7 +2606,7 @@ fn lint_map_or_none<'a, 'tcx>(
2606
2607
span_lint_and_sugg(
2608
cx,
2609
- lint,
+ lint_name,
2610
expr.span,
2611
msg,
2612
instead,
0 commit comments