From f16a9ea9ad362b71d37774870080f5b6545e4f2f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 30 Nov 2023 18:31:56 +0100 Subject: Drop dependency on `DashMap` DashMap doesn't work in multi-threaded WebAssembly in Safari: https://bugs.webkit.org/show_bug.cgi?id=265581 --- crates/typst-cli/src/world.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/typst-cli/src') diff --git a/crates/typst-cli/src/world.rs b/crates/typst-cli/src/world.rs index f375c648..99456679 100644 --- a/crates/typst-cli/src/world.rs +++ b/crates/typst-cli/src/world.rs @@ -111,7 +111,7 @@ impl SystemWorld { /// Reset the compilation state in preparation of a new compilation. pub fn reset(&mut self) { - for slot in self.slots.borrow_mut().values_mut() { + for slot in self.slots.get_mut().values_mut() { slot.reset(); } self.now.take(); -- cgit v1.2.3