mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07: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:
parent
cc93db3b18
commit
05411b2b32
@ -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 MESSAGES: AtomicBool = AtomicBool::new(false);
|
||||||
static IGNORE_MESSAGES: AtomicBool = ATOMIC_BOOL_INIT;
|
static IGNORE_MESSAGES: AtomicBool = AtomicBool::new(false);
|
||||||
static ERRORED: AtomicBool = ATOMIC_BOOL_INIT;
|
static ERRORED: AtomicBool = AtomicBool::new(false);
|
||||||
|
|
||||||
/// Emit a non-fatal error message, unless messages were disabled.
|
/// Emit a non-fatal error message, unless messages were disabled.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user