mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
result_map_or_into: fix dogfood_clippy error => {h,l}int
This commit is contained in:
parent
2533f56a0e
commit
325d0b69d2
1 changed files with 2 additions and 2 deletions
|
@ -2559,7 +2559,7 @@ fn lint_map_or_none<'a, 'tcx>(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let (lint, msg, instead, hint) = {
|
let (lint_name, msg, instead, hint) = {
|
||||||
let default_arg_is_none = if let hir::ExprKind::Path(ref qpath) = map_or_args[1].kind {
|
let default_arg_is_none = if let hir::ExprKind::Path(ref qpath) = map_or_args[1].kind {
|
||||||
match_qpath(qpath, &paths::OPTION_NONE)
|
match_qpath(qpath, &paths::OPTION_NONE)
|
||||||
} else {
|
} else {
|
||||||
|
@ -2606,7 +2606,7 @@ fn lint_map_or_none<'a, 'tcx>(
|
||||||
|
|
||||||
span_lint_and_sugg(
|
span_lint_and_sugg(
|
||||||
cx,
|
cx,
|
||||||
lint,
|
lint_name,
|
||||||
expr.span,
|
expr.span,
|
||||||
msg,
|
msg,
|
||||||
instead,
|
instead,
|
||||||
|
|
Loading…
Reference in a new issue