Fix Send requirements in WebAssembly builds
This commit is contained in:
parent
4991a1a7f3
commit
5417b630a5
6 changed files with 14 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue