Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rrbutani committed May 28, 2020
1 parent 0fa44cf commit 8ad0162
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/macro-support/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,9 +1074,7 @@ fn import_enum(enum_: syn::ItemEnum, program: &mut ast::Program) -> Result<(), D
attrs: _,
lit: syn::Lit::Str(str_lit),
}),
)) => {
(v.ident.clone(), str_lit.value())
}
)) => (v.ident.clone(), str_lit.value()),
Some((_, expr)) => bail_span!(
expr,
"enums with #[wasm_bindgen] cannot mix string and non-string values",
Expand All @@ -1091,7 +1089,7 @@ fn import_enum(enum_: syn::ItemEnum, program: &mut ast::Program) -> Result<(), D
ast::Variant {
name,
value,
comments
comments,
},
v.attrs.clone(),
))
Expand Down

0 comments on commit 8ad0162

Please sign in to comment.