mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-25 06:02:13 +00:00
Explictly drop instead of relying on RAII. (#2144)
This commit is contained in:
parent
996e92f3ae
commit
047b4209ad
@ -213,7 +213,7 @@ impl ToTokens for ast::Struct {
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[allow(clippy::all)]
|
#[allow(clippy::all)]
|
||||||
pub unsafe extern "C" fn #free_fn(ptr: u32) {
|
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)]
|
#[allow(clippy::all)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user