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

@ -456,10 +456,7 @@ impl TryToTokens for ast::Export {
},
)
} else {
(
quote! { #syn_ret },
quote! { #ret },
)
(quote! { #syn_ret }, quote! { #ret })
};
let projection = quote! { <#ret_ty as wasm_bindgen::convert::ReturnWasmAbi> };
let convert_ret = quote! { #projection::return_abi(#ret_expr) };

View File

@ -198,7 +198,7 @@ fn shared_function<'a>(func: &'a ast::Function, _intern: &'a Interner) -> Functi
.enumerate()
.map(|(idx, arg)| {
if let syn::Pat::Ident(x) = &*arg.pat {
return x.ident.to_string()
return x.ident.to_string();
}
format!("arg{}", idx)
})