-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm-bindgen
0.2.92 triggers clippy::mem_forget
#3944
Comments
wasm-bindgen
0.2.92 and later triggers clippy::mem_forget
wasm-bindgen
0.2.92 triggers clippy::mem_forget
I think this is the wasm-bindgen/crates/backend/src/codegen.rs Line 369 in e78db23
There's an What we should really be using is |
Hm, seems like I was wrong: Clippy still throws a warning on this code even though it uses #![warn(clippy::mem_forget)]
struct Foo;
#[automatically_derived]
impl Foo {
fn test() {
std::mem::forget(String::new());
}
} Searching for So I'm not really sure what the best solution is then, other than just spamming |
Summary
wasm-bindgen 0.2.92 triggers the Clippy rule mem_forget. Is it expected?
The text was updated successfully, but these errors were encountered: