Skip to content

Commit 325d0b6

Browse files
committed
result_map_or_into: fix dogfood_clippy error => {h,l}int
1 parent 2533f56 commit 325d0b6

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,7 @@ fn lint_map_or_none<'a, 'tcx>(
25592559
return;
25602560
}
25612561

2562-
let (lint, msg, instead, hint) = {
2562+
let (lint_name, msg, instead, hint) = {
25632563
let default_arg_is_none = if let hir::ExprKind::Path(ref qpath) = map_or_args[1].kind {
25642564
match_qpath(qpath, &paths::OPTION_NONE)
25652565
} else {
@@ -2606,7 +2606,7 @@ fn lint_map_or_none<'a, 'tcx>(
26062606

26072607
span_lint_and_sugg(
26082608
cx,
2609-
lint,
2609+
lint_name,
26102610
expr.span,
26112611
msg,
26122612
instead,

0 commit comments

Comments
 (0)