diff --git a/src/ctrlc/interrupted.rs b/src/ctrlc/interrupted.rs index 5322d9bb..28886d47 100644 --- a/src/ctrlc/interrupted.rs +++ b/src/ctrlc/interrupted.rs @@ -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 {