diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-06-09 15:23:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-09 13:23:56 +0000 |
| commit | f91cad7d7829556e24d219e55db7da56a966523f (patch) | |
| tree | adce387eb0008198852dd243693512237d3b5f2a /crates/typst-timing | |
| parent | cc3e9c86022c5ae5a82938b0b65e3d2dca93b1ed (diff) | |
Pure location assignment (#4352)
Diffstat (limited to 'crates/typst-timing')
| -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); } |
