You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warn on usage of the lazy_static! macro or the Lazy type from once_cell in declarations of static variables. Crates with an older MSRB or no_std creates would be excluded.
These solutions have been superceded by the nearly stabilized std::sync::LazyLock type (on track for 1.80.0).
Advantage
Remove dependency on the lazy_static or once_cell crate
What it does
Warn on usage of the
lazy_static!
macro or theLazy
type fromonce_cell
in declarations ofstatic
variables. Crates with an older MSRB orno_std
creates would be excluded.These solutions have been superceded by the nearly stabilized
std::sync::LazyLock
type (on track for 1.80.0).Advantage
lazy_static
oronce_cell
crateDrawbacks
Churn
Example
Could be written as:
The text was updated successfully, but these errors were encountered: