Skip to content

Commit 1874b06

Browse files
authored
Reexport lazy_static in lazy_static (#144)
* Clippies * Reexport lazy_static in lazy_static
1 parent 2fdc33f commit 1874b06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lazy_static.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ use crate::runtime::storage::StorageKey;
2121
use crate::sync::Once;
2222
use std::marker::PhantomData;
2323

24+
// `use lazy_static::lazy_static;` is valid, thus `use shuttle::lazy_static::lazy_static;` should be as well.
25+
pub use crate::lazy_static;
26+
2427
/// Shuttle's implementation of `lazy_static::Lazy` (aka the unstable `std::lazy::Lazy`).
2528
// Sadly, the fields of this thing need to be public because function pointers in const fns are
2629
// unstable, so an explicit instantiation is the only way to construct this struct. User code should

0 commit comments

Comments
 (0)