summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-01-29 13:05:16 -0500
committerAndrew Gallant <jamslam@gmail.com>2019-01-29 13:05:16 -0500
commit05411b2b322692f0052f0c5b2eefcbb14883f338 (patch)
tree42e6e30a6ee85e7827b1615d5ff76c381713678c
parentcc93db3b1899fb4ad894472af5b88424ce0bb75a (diff)
deprecated: remove use of ATOMIC_BOOL_INIT
Our MSRV is high enough that we can use const functions now.
-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]