mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
result_map_or_into_option: fix cargo dev fmt --check
errors
This commit is contained in:
parent
acc3bc1ba2
commit
2533f56a0e
@ -2559,10 +2559,7 @@ fn lint_map_or_none<'a, 'tcx>(
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
let (lint, msg, instead, hint) = {
|
||||
|
||||
let default_arg_is_none = if let hir::ExprKind::Path(ref qpath) = map_or_args[1].kind {
|
||||
match_qpath(qpath, &paths::OPTION_NONE)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user