diff options
| author | LingMan <LingMan@users.noreply.github.com> | 2020-09-23 01:09:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 01:09:24 +0200 |
| commit | d76b80768c4e5f1ee879af12db30d8930e50f70d (patch) | |
| tree | d2b7bed3e97df5bed763167e26917ec38678e4cb | |
| parent | 0da58007451a154da2480160429e1604a1f5f0ec (diff) | |
| download | rust-d76b80768c4e5f1ee879af12db30d8930e50f70d.tar.gz rust-d76b80768c4e5f1ee879af12db30d8930e50f70d.zip | |
Merge two almost identical match arms
| -rw-r--r-- | compiler/rustc_builtin_macros/src/format_foreign.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/format_foreign.rs b/compiler/rustc_builtin_macros/src/format_foreign.rs index b39423b86e7..ff81b5eca13 100644 --- a/compiler/rustc_builtin_macros/src/format_foreign.rs +++ b/compiler/rustc_builtin_macros/src/format_foreign.rs @@ -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; |
