Open WenqingZong opened 3 weeks ago
The error is caused by the impl Default for Universe
being generated in-between the #[wasm_bindgen]
attribute applied to the impl and the impl
itself, leading to the impl Default for Universe
getting the #[wasm_bindgen]
instead and erroring.
Summary
Hi, found this message in cargo clippy output so post the issue here.
Original code: https://github.com/WenqingZong/wasm-game-of-life/pull/1/commits/b388612cddb1e5507bb580f979dfcb8e030de491 just git checkout it.
Cargo Clippy output:
Reproducer
Code: https://github.com/WenqingZong/wasm-game-of-life/pull/1/commits/b388612cddb1e5507bb580f979dfcb8e030de491
Step to reproduce:
cargo clippy --fix --lib -p wasm-game-of-life
Version
rustc 1.82.0 (f6e511eec 2024-10-15) binary: rustc commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14 commit-date: 2024-10-15 host: aarch64-apple-darwin release: 1.82.0 LLVM version: 19.1.1
Additional Labels
No response