Skip to content

Commit

Permalink
Reexport lazy_static in lazy_static (#144)
Browse files Browse the repository at this point in the history
* Clippies

* Reexport lazy_static in lazy_static
  • Loading branch information
sarsko authored Mar 28, 2024
1 parent 2fdc33f commit 1874b06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lazy_static.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1874b06

Please sign in to comment.