From 0a48d2bc29d06a7466f3eda205efa89b02bb85e0 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Mon, 1 Oct 2018 09:53:03 -0700 Subject: [PATCH] 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. --- crates/web-sys/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/web-sys/src/lib.rs b/crates/web-sys/src/lib.rs index 724b72711..3f0191811 100755 --- a/crates/web-sys/src/lib.rs +++ b/crates/web-sys/src/lib.rs @@ -16,6 +16,7 @@ extern crate js_sys; extern crate wasm_bindgen; +#[allow(unused_imports)] use js_sys::Object; #[cfg(feature = "Window")]