From af99915ead2b9c7eb6eed0c268a9f24e68a8e22b Mon Sep 17 00:00:00 2001 From: z78078 Date: Mon, 4 Jul 2022 18:02:09 +0800 Subject: [PATCH] refractor the import statement --- nac3core/src/codegen/mod.rs | 3 +++ nac3core/src/lib.rs | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nac3core/src/codegen/mod.rs b/nac3core/src/codegen/mod.rs index a0cbda1b..4e9ed219 100644 --- a/nac3core/src/codegen/mod.rs +++ b/nac3core/src/codegen/mod.rs @@ -52,6 +52,9 @@ pub struct StaticValueStore { pub type VarValue<'ctx> = (PointerValue<'ctx>, Option>, i64); + +use lazy_static::lazy_static; + lazy_static!( // HACK: The Mutex is a work-around for issue // https://git.m-labs.hk/M-Labs/nac3/issues/275 diff --git a/nac3core/src/lib.rs b/nac3core/src/lib.rs index ec45cbe9..bff6b5cc 100644 --- a/nac3core/src/lib.rs +++ b/nac3core/src/lib.rs @@ -1,9 +1,6 @@ #![warn(clippy::all)] #![allow(dead_code)] -#[macro_use] -extern crate lazy_static; - pub mod codegen; pub mod symbol_resolver; pub mod toplevel;