mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 06:33:33 +03:00
web-sys: allow unused import warning
This import is only used if some features get used and it is way easier to just quiet the warning when those features aren't used than to try and `cfg` this import.
This commit is contained in:
parent
62c5699f48
commit
0a48d2bc29
@ -16,6 +16,7 @@
|
||||
extern crate js_sys;
|
||||
extern crate wasm_bindgen;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use js_sys::Object;
|
||||
|
||||
#[cfg(feature = "Window")]
|
||||
|
Loading…
Reference in New Issue
Block a user