refactor(ctrlc): Remove reduntant lazy_static (#109)

This commit is contained in:
pan93412
2022-11-03 20:39:46 +08:00
committed by Thomas Schönauer
parent 623a11cf21
commit edc3dd6b0b

View File

@@ -1,10 +1,7 @@
use lazy_static::lazy_static;
use std::sync::atomic::{AtomicBool, Ordering};
lazy_static! {
/// A global variable telling whether the application has been interrupted.
static ref INTERRUPTED: AtomicBool = AtomicBool::new(false);
}
/// A global variable telling whether the application has been interrupted.
static INTERRUPTED: AtomicBool = AtomicBool::new(false);
/// Tells whether the program has been interrupted
pub fn interrupted() -> bool {