Skip to content

Commit

Permalink
Reexport lazy_static in lazy_static
Browse files Browse the repository at this point in the history
  • Loading branch information
sarsko committed Mar 28, 2024
1 parent bd91e39 commit a359746
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 a359746

Please sign in to comment.