request-animation-frame $ cargo clippy Checking js-sys v0.3.10 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/crates/js-sys) error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:129:1 | 129 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: #[deny(clippy::drop_ref)] on by default = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:394:1 | 394 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:469:1 | 469 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:489:1 | 489 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:721:1 | 721 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:760:1 | 760 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:776:1 | 776 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:865:1 | 865 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:954:1 | 954 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref warning: transmute from a reference to a reference --> crates/js-sys/src/lib.rs:1053:27 | 1053 | Some(unsafe { mem::transmute(val) }) | ^^^^^^^^^^^^^^^^^^^ help: try: `&*(val as *const wasm_bindgen::JsValue as *const Function)` | = note: #[warn(clippy::transmute_ptr_to_ptr)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1061:1 | 1061 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1089:1 | 1089 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1178:1 | 1178 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1267:1 | 1267 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1356:1 | 1356 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1444:1 | 1444 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1573:1 | 1573 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1598:1 | 1598 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1846:1 | 1846 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1944:1 | 1944 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2291:1 | 2291 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref warning: transmute from a reference to a reference --> crates/js-sys/src/lib.rs:2527:27 | 2527 | Some(unsafe { mem::transmute(val) }) | ^^^^^^^^^^^^^^^^^^^ help: try: `&*(val as *const wasm_bindgen::JsValue as *const Object)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2535:1 | 2535 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2557:1 | 2557 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2576:1 | 2576 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2595:1 | 2595 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2738:1 | 2738 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2915:1 | 2915 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3000:1 | 3000 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3021:1 | 3021 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3040:1 | 3040 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3129:1 | 3129 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3220:1 | 3220 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3309:1 | 3309 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3398:1 | 3398 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3417:1 | 3417 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3461:1 | 3461 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3543:5 | 3543 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3564:5 | 3564 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3596:5 | 3596 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3617:5 | 3617 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3638:5 | 3638 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3681:5 | 3681 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3730:5 | 3730 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3769:1 | 3769 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3832:1 | 3832 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref warning: this function has too many arguments (8/7) --> crates/js-sys/src/lib.rs:3832:15 | 3832 | #[wasm_bindgen] | ^ | = note: #[warn(clippy::too_many_arguments)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments warning: transmute from a reference to a reference --> crates/js-sys/src/lib.rs:4295:27 | 4295 | Some(unsafe { mem::transmute(val) }) | ^^^^^^^^^^^^^^^^^^^ help: try: `&*(val as *const wasm_bindgen::JsValue as *const JsString)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr warning: this creates an owned instance just for comparison --> crates/js-sys/src/lib.rs:4304:9 | 4304 | String::from(self) == other | ^^^^^^^^^^^^^^^^^^ help: try: `self` | = note: #[warn(clippy::cmp_owned)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4359:1 | 4359 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4503:5 | 4503 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4547:5 | 4547 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4598:5 | 4598 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4648:5 | 4648 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4691:1 | 4691 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: aborting due to 50 previous errors error: Could not compile `js-sys`. To learn more, run the command again with --verbose. request-animation-frame $