Skip to content

Commit

Permalink
remove redundant unit expressions (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
crapStone committed Jan 26, 2022
1 parent 54b8aeb commit 232d94e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions crates/backend/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ impl ToTokens for ast::Struct {
pub unsafe extern "C" fn #free_fn(ptr: u32) {
drop(<#name as wasm_bindgen::convert::FromWasmAbi>::from_abi(ptr));
}

()
};

#[automatically_derived]
Expand Down Expand Up @@ -317,8 +315,6 @@ impl ToTokens for ast::StructField {
let val = (*js).borrow().#rust_name#maybe_clone;
<#ty as IntoWasmAbi>::into_abi(val)
}

()
};
})
.to_tokens(tokens);
Expand Down Expand Up @@ -356,8 +352,6 @@ impl ToTokens for ast::StructField {
let val = <#ty as FromWasmAbi>::from_abi(val);
(*js).borrow_mut().#rust_name = val;
}

()
};
})
.to_tokens(tokens);
Expand Down Expand Up @@ -548,8 +542,6 @@ impl TryToTokens for ast::Export {
};
#convert_ret
}

()
};
})
.to_tokens(into);
Expand Down Expand Up @@ -794,8 +786,6 @@ impl ToTokens for ast::ImportType {
}

impl JsObject for #rust_name {}

()
};
})
.to_tokens(tokens);
Expand Down Expand Up @@ -1365,8 +1355,6 @@ impl<'a, T: ToTokens> ToTokens for Descriptor<'a, T> {
wasm_bindgen::__rt::link_mem_intrinsics();
#inner
}

()
};
})
.to_tokens(tokens);
Expand Down

0 comments on commit 232d94e

Please sign in to comment.