]> Repositorios git - scryer-prolog.git/commitdiff
remove unecessary use of LayzLock
authorSkgland <[email protected]>
Fri, 5 Jun 2026 18:47:20 +0000 (20:47 +0200)
committerSkgland <[email protected]>
Fri, 5 Jun 2026 18:47:20 +0000 (20:47 +0200)
AtomicBool::new const

src/machine/mod.rs

index 487fadcc983728d338289c4413043166b8531d67..57de1f96e29551226d11e7636820940f0f0205ae 100644 (file)
@@ -62,9 +62,9 @@ use std::io::Read;
 use std::path::PathBuf;
 use std::process::ExitCode;
 use std::sync::atomic::AtomicBool;
-use std::sync::{LazyLock, OnceLock};
+use std::sync::OnceLock;
 
-pub static INTERRUPT: LazyLock<AtomicBool> = LazyLock::new(|| AtomicBool::new(false));
+pub static INTERRUPT: AtomicBool = AtomicBool::new(false);
 
 /// An instance of Scryer Prolog.
 ///