fix: preserve web builds and leader selection order

This commit is contained in:
Hakan Seven committed 2026-09-09 13:10:21 +03:00
1 parent 6d5763bb70
commit cba2680be0
5 files changed
+38 -68

No files matched your search

+8
View File
@@ -75,3 +75,11 @@ pub mod prelude {
impl<I: Iterator> IterParExt for I {}
}
#[cfg(not(target_arch = "wasm32"))]
pub use rayon::join;
#[cfg(target_arch = "wasm32")]
pub fn join<A, B>(a: impl FnOnce() -> A, b: impl FnOnce() -> B) -> (A, B) {
(a(), b())
}