result_map_or_into_option: fix cargo dev fmt --check errors

This commit is contained in:
Nick Torres 2020-04-04 14:33:43 -07:00
parent acc3bc1ba2
commit 2533f56a0e

View File

@ -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 {