1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00

deprecated: remove use of ATOMIC_BOOL_INIT

Our MSRV is high enough that we can use const functions now.
This commit is contained in:
Andrew Gallant 2019-01-29 13:05:16 -05:00
parent cc93db3b18
commit 05411b2b32
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44

View File

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