Skip to content

Commit

Permalink
Merge two almost identical match arms
Browse files Browse the repository at this point in the history
  • Loading branch information
LingMan authored Sep 22, 2020
1 parent 0da5800 commit d76b807
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_builtin_macros/src/format_foreign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,7 @@ pub mod printf {
.and_then(|end| end.at_next_cp())
.map(|end| (next.slice_between(end).unwrap(), end));
let end = match end {
Some(("32", end)) => end,
Some(("64", end)) => end,
Some(("32" | "64", end)) => end,
_ => next,
};
state = Type;
Expand Down

0 comments on commit d76b807

Please sign in to comment.