replace lazy_static! with once_cell::sync::Lazy

This commit is contained in:
hinto.janai
2023-11-05 09:43:40 -05:00
committed by Luke Parker
parent de41be6e26
commit bd3272a9f2
6 changed files with 14 additions and 17 deletions

View File

@@ -16,9 +16,7 @@ mod addresses;
pub(crate) use addresses::test_addresses;
// Effective Once
lazy_static::lazy_static! {
static ref INIT_LOGGER: () = env_logger::init();
}
static INIT_LOGGER: once_cell::sync::Lazy<()> = once_cell::sync::Lazy::new(env_logger::init);
#[macro_export]
macro_rules! test_network {