Run rustfmt

This commit is contained in:
Alex Crichton
2019-10-28 20:15:05 -07:00
parent a20dd26dde
commit 513285f73d
13 changed files with 100 additions and 69 deletions

View File

@ -1019,18 +1019,16 @@ impl MacroParse<()> for syn::ItemEnum {
attrs: _,
lit: syn::Lit::Int(int_lit),
}),
)) => {
match int_lit.base10_digits().parse::<u32>() {
Ok(v) => v,
Err(_) => {
bail_span!(
int_lit,
"enums with #[wasm_bindgen] can only support \
numbers that can be represented as u32"
);
}
)) => match int_lit.base10_digits().parse::<u32>() {
Ok(v) => v,
Err(_) => {
bail_span!(
int_lit,
"enums with #[wasm_bindgen] can only support \
numbers that can be represented as u32"
);
}
}
},
None => i as u32,
Some((_, expr)) => bail_span!(
expr,