diff options
Diffstat (limited to 'crates/typst-timing/src/lib.rs')
| -rw-r--r-- | crates/typst-timing/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/typst-timing/src/lib.rs b/crates/typst-timing/src/lib.rs index a972cf72..4e711d5f 100644 --- a/crates/typst-timing/src/lib.rs +++ b/crates/typst-timing/src/lib.rs @@ -59,6 +59,8 @@ enum EventKind { /// Enable the timer. #[inline] pub fn enable() { + // We only need atomicity and no synchronization of other + // operations, so `Relaxed` is fine. ENABLED.store(true, Relaxed); } |
