wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

`wasm-bindgen` 0.2.92 triggers `clippy::mem_forget`

Open Conaclos opened this issue 2 months ago • 2 comments

Summary

wasm-bindgen 0.2.92 triggers the Clippy rule mem_forget. Is it expected?

error: usage of `mem::forget` on `Drop` type
  --> crates/biome_wasm/src/lib.rs:24:1
   |
24 | #[wasm_bindgen]
   | ^^^^^^^^^^^^^^^
   |
   = note: argument has type `wasm_bindgen::JsValue`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_forget
   = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

Conaclos avatar May 01 '24 15:05 Conaclos