Skip to content

Commit d76b807

Browse files
authored
Merge two almost identical match arms
1 parent 0da5800 commit d76b807

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_builtin_macros/src/format_foreign.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,7 @@ pub mod printf {
518518
.and_then(|end| end.at_next_cp())
519519
.map(|end| (next.slice_between(end).unwrap(), end));
520520
let end = match end {
521-
Some(("32", end)) => end,
522-
Some(("64", end)) => end,
521+
Some(("32" | "64", end)) => end,
523522
_ => next,
524523
};
525524
state = Type;

0 commit comments

Comments
 (0)