Fix Send requirements in WebAssembly builds

This commit is contained in:
Héctor Ramón Jiménez 2025-08-29 09:07:19 +02:00
parent 4991a1a7f3
commit 5417b630a5
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 14 additions and 20 deletions

View file

@ -413,7 +413,7 @@ mod internal {
}
}
#[cfg(feature = "hot")]
#[cfg(all(feature = "hot", not(target_arch = "wasm32")))]
mod hot {
use std::collections::BTreeSet;
use std::sync::atomic::{self, AtomicBool};
@ -478,7 +478,7 @@ mod hot {
}
}
#[cfg(not(feature = "hot"))]
#[cfg(any(not(feature = "hot"), target_arch = "wasm32"))]
mod hot {
pub fn init() {}
@ -486,7 +486,7 @@ mod hot {
f()
}
pub fn on_hotpatch(_f: impl Fn() + Send + Sync + 'static) {}
pub fn on_hotpatch(_f: impl Fn()) {}
pub fn is_stale() -> bool {
false