mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Require Send
and Sync
for worlds (#4219)
This commit is contained in:
parent
a52987a8c2
commit
e715def088
@ -191,7 +191,7 @@ fn deduplicate(mut diags: EcoVec<SourceDiagnostic>) -> EcoVec<SourceDiagnostic>
|
|||||||
/// [edit](Source::edit) them in-place to benefit from better incremental
|
/// [edit](Source::edit) them in-place to benefit from better incremental
|
||||||
/// performance.
|
/// performance.
|
||||||
#[comemo::track]
|
#[comemo::track]
|
||||||
pub trait World {
|
pub trait World: Send + Sync {
|
||||||
/// The standard library.
|
/// The standard library.
|
||||||
///
|
///
|
||||||
/// Can be created through `Library::build()`.
|
/// Can be created through `Library::build()`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user