diff --git a/crates/console/src/lib.rs b/crates/console/src/lib.rs index c62b0df5..9ccd2d3b 100644 --- a/crates/console/src/lib.rs +++ b/crates/console/src/lib.rs @@ -25,7 +25,6 @@ mod macros; mod timer; pub use counter::Counter; -pub use macros::*; pub use timer::Timer; #[doc(hidden)] diff --git a/crates/net/src/eventsource/futures.rs b/crates/net/src/eventsource/futures.rs index daedc576..c4c9289e 100644 --- a/crates/net/src/eventsource/futures.rs +++ b/crates/net/src/eventsource/futures.rs @@ -134,15 +134,8 @@ impl EventSource { .map_err(js_to_js_error)?; let error_callback: Closure = { - Closure::wrap(Box::new(move |e: web_sys::Event| { - let is_connecting = e - .current_target() - .map(|target| target.unchecked_into::()) - .map(|es| es.ready_state() == web_sys::EventSource::CONNECTING) - .unwrap_or(false); - if !is_connecting { - let _ = message_sender.unbounded_send(StreamMessage::ErrorEvent); - }; + Closure::wrap(Box::new(move |_| { + let _ = message_sender.unbounded_send(StreamMessage::ErrorEvent); }) as Box) }; diff --git a/crates/net/tests/http.rs b/crates/net/tests/http.rs index 38198c79..1de4f08e 100644 --- a/crates/net/tests/http.rs +++ b/crates/net/tests/http.rs @@ -3,7 +3,7 @@ use once_cell::sync::Lazy; use serde::{Deserialize, Serialize}; use wasm_bindgen_test::*; -#[cfg(feature = "browser_test")] +#[cfg(feature = "browser-test")] wasm_bindgen_test_configure!(run_in_browser); static HTTPBIN_URL: Lazy<&'static str> = diff --git a/crates/net/tests/query.rs b/crates/net/tests/query.rs index 4492066a..f62750e5 100644 --- a/crates/net/tests/query.rs +++ b/crates/net/tests/query.rs @@ -1,7 +1,7 @@ use gloo_net::http::QueryParams; use wasm_bindgen_test::*; -#[cfg(feature = "browser_test")] +#[cfg(feature = "browser-test")] wasm_bindgen_test_configure!(run_in_browser); #[wasm_bindgen_test]