mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
Run rustfmt
This commit is contained in:
@ -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) };
|
||||
|
@ -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)
|
||||
})
|
||||
|
Reference in New Issue
Block a user