Skip to content

Commit

Permalink
result_map_or_into_option: fix cargo dev fmt --check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrtorres committed Apr 4, 2020
1 parent acc3bc1 commit 2533f56
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2533f56

Please sign in to comment.