wasm-bindgen
wasm-bindgen copied to clipboard
codegen: Ignore `clippy::drop_non_drop` in generated free fn
Depending on the underlying types clippy can warn:
call to
std::mem::dropwith a value that does not implementDrop. Dropping such a type only extends its contained lifetimes
However such a drop is ultimately harmless and in generated code it's easier to ignore it than to conditionally generate code with/without the drop.
This is an alternative to #2984 and is related to #2858.