From a446a164710c4ff503450d3842fcae280588a284 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 5 Feb 2023 08:42:06 +0100 Subject: [PATCH] flog.rs: use qualified name in FLOG! macro Otherwise this macro fails when used in a context that doesn't import this name. --- fish-rust/src/flog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish-rust/src/flog.rs b/fish-rust/src/flog.rs index d166ec584..54550f429 100644 --- a/fish-rust/src/flog.rs +++ b/fish-rust/src/flog.rs @@ -150,7 +150,7 @@ pub fn flog_impl(s: &str) { macro_rules! FLOG { ($category:ident, $($elem:expr),+) => { - if crate::flog::categories::$category.enabled.load(Ordering::Relaxed) { + if crate::flog::categories::$category.enabled.load(std::sync::atomic::Ordering::Relaxed) { let mut vs = Vec::new(); $( vs.push(format!("{:?}", $elem));