Explictly drop instead of relying on RAII. (#2144)

This commit is contained in:
Tanner Rogalsky 2020-05-18 16:24:21 -04:00 committed by GitHub
parent 996e92f3ae
commit 047b4209ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ impl ToTokens for ast::Struct {
#[doc(hidden)]
#[allow(clippy::all)]
pub unsafe extern "C" fn #free_fn(ptr: u32) {
<#name as wasm_bindgen::convert::FromWasmAbi>::from_abi(ptr);
drop(<#name as wasm_bindgen::convert::FromWasmAbi>::from_abi(ptr));
}
#[allow(clippy::all)]