From edc3dd6b0bd04f8c77a7c6cd40494f14bfd32a2b Mon Sep 17 00:00:00 2001 From: pan93412 Date: Thu, 3 Nov 2022 20:39:46 +0800 Subject: [PATCH] refactor(ctrlc): Remove reduntant `lazy_static` (#109) --- src/ctrlc/interrupted.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 {