Skip to content

Commit b99ab10

Browse files
committed
Running rustfmt
1 parent d193b2d commit b99ab10

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

crates/cli-support/src/js/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,11 @@ impl<'a> Context<'a> {
461461
Ok(imports)
462462
}
463463

464-
fn ts_for_init_fn(&self, has_memory: bool, has_module_or_path_optional: bool) -> Result<String, Error> {
464+
fn ts_for_init_fn(
465+
&self,
466+
has_memory: bool,
467+
has_module_or_path_optional: bool,
468+
) -> Result<String, Error> {
465469
let output = crate::wasm2es6js::interface(&self.module)?;
466470

467471
let (memory_doc, memory_param) = if has_memory {

crates/cli-support/src/wasm2es6js.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,11 @@ pub fn interface(module: &Module) -> Result<String, Error> {
5151
let id = match entry.item {
5252
walrus::ExportItem::Function(i) => i,
5353
walrus::ExportItem::Memory(_) => {
54-
exports.push_str(&format!(
55-
" readonly {}: WebAssembly.Memory;\n",
56-
entry.name,
57-
));
54+
exports.push_str(&format!(" readonly {}: WebAssembly.Memory;\n", entry.name,));
5855
continue;
5956
}
6057
walrus::ExportItem::Table(_) => {
61-
exports.push_str(&format!(
62-
" readonly {}: WebAssembly.Table;\n",
63-
entry.name,
64-
));
58+
exports.push_str(&format!(" readonly {}: WebAssembly.Table;\n", entry.name,));
6559
continue;
6660
}
6761
walrus::ExportItem::Global(_) => continue,

0 commit comments

Comments
 (0)