From a359746d11ccc0a9e9b1b71e4b6823181061298e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sarek=20H=C3=B8verstad=20Skot=C3=A5m?= Date: Wed, 27 Mar 2024 13:41:54 -0700 Subject: [PATCH] Reexport lazy_static in lazy_static --- src/lazy_static.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lazy_static.rs b/src/lazy_static.rs index 2e983b8a..1c00ee2b 100644 --- a/src/lazy_static.rs +++ b/src/lazy_static.rs @@ -21,6 +21,9 @@ use crate::runtime::storage::StorageKey; use crate::sync::Once; use std::marker::PhantomData; +// `use lazy_static::lazy_static;` is valid, thus `use shuttle::lazy_static::lazy_static;` should be as well. +pub use crate::lazy_static; + /// Shuttle's implementation of `lazy_static::Lazy` (aka the unstable `std::lazy::Lazy`). // Sadly, the fields of this thing need to be public because function pointers in const fns are // unstable, so an explicit instantiation is the only way to construct this struct. User code should