From e715def088c7a560b283a8cf98ebc4be14a0dc59 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 22 May 2024 12:30:05 +0200 Subject: [PATCH] Require `Send` and `Sync` for worlds (#4219) --- crates/typst/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst/src/lib.rs b/crates/typst/src/lib.rs index aad474a1b..e17d93468 100644 --- a/crates/typst/src/lib.rs +++ b/crates/typst/src/lib.rs @@ -191,7 +191,7 @@ fn deduplicate(mut diags: EcoVec) -> EcoVec /// [edit](Source::edit) them in-place to benefit from better incremental /// performance. #[comemo::track] -pub trait World { +pub trait World: Send + Sync { /// The standard library. /// /// Can be created through `Library::build()`.