From 8ad016290fb56ff0b43c6049d78d250ca5360b4b Mon Sep 17 00:00:00 2001 From: Rahul Butani Date: Sat, 16 May 2020 17:40:12 -0500 Subject: [PATCH] fmt --- crates/macro-support/src/parser.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/macro-support/src/parser.rs b/crates/macro-support/src/parser.rs index d11da1eb06d..cb211de713b 100644 --- a/crates/macro-support/src/parser.rs +++ b/crates/macro-support/src/parser.rs @@ -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", @@ -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(), ))