summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/messages.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/messages.rs b/src/messages.rs
index 9d134a14..dc013e1c 100644
--- a/src/messages.rs
+++ b/src/messages.rs
@@ -1,8 +1,8 @@
-use std::sync::atomic::{ATOMIC_BOOL_INIT, AtomicBool, Ordering};
+use std::sync::atomic::{AtomicBool, Ordering};
-static MESSAGES: AtomicBool = ATOMIC_BOOL_INIT;
-static IGNORE_MESSAGES: AtomicBool = ATOMIC_BOOL_INIT;
-static ERRORED: AtomicBool = ATOMIC_BOOL_INIT;
+static MESSAGES: AtomicBool = AtomicBool::new(false);
+static IGNORE_MESSAGES: AtomicBool = AtomicBool::new(false);
+static ERRORED: AtomicBool = AtomicBool::new(false);
/// Emit a non-fatal error message, unless messages were disabled.
#[macro_export]