Skip to content

Commit c994580

Browse files
fix: unused start_now warning (#4120)
1 parent 54923c7 commit c994580

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/yew/src/scheduler.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ mod feat_hydration {
237237
pub(crate) use feat_hydration::*;
238238

239239
/// Execute any pending [Runnable]s
240+
#[cfg(any(
241+
not(target_arch = "wasm32"),
242+
target_os = "wasi",
243+
feature = "not_browser_env",
244+
test,
245+
feature = "test"
246+
))]
240247
pub(crate) fn start_now() {
241248
#[tracing::instrument(level = tracing::Level::DEBUG)]
242249
fn scheduler_loop() {

0 commit comments

Comments
 (0)