From 18204ff83aab8d6a5cdc8d9747d9815c5e480b3f Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Sun, 16 Nov 2025 08:54:24 +0800 Subject: [PATCH] feat: update ordering --- crates/typst-shim/src/syntax_only.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-shim/src/syntax_only.rs b/crates/typst-shim/src/syntax_only.rs index 74491760..6620e149 100644 --- a/crates/typst-shim/src/syntax_only.rs +++ b/crates/typst-shim/src/syntax_only.rs @@ -11,7 +11,7 @@ pub static SYNTAX_ONLY: AtomicBool = AtomicBool::new(false); /// Check if syntax-only mode is enabled. pub fn is_syntax_only() -> bool { - SYNTAX_ONLY.load(Ordering::Relaxed) + SYNTAX_ONLY.load(Ordering::Acquire) } /// Compile the document if syntax-only mode is disabled; otherwise, return an