feat: update ordering

This commit is contained in:
Myriad-Dreamin 2025-11-16 08:54:24 +08:00
parent 1ef7ed5cb2
commit 18204ff83a

View file

@ -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