stacks-network/stacks-core

Replace lazy_static! with `std::cell::LazyCell`

Open

#5035 aperta il 1 ago 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)Rust (758 fork)auto 404
good first issuerefactoring

Metriche repository

Star
 (3063 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

With std::cell::LazyCell landing in Rust 1.80 (https://doc.rust-lang.org/std/cell/struct.LazyCell.html), I believe all of our uses of lazy_static! can be replaced. This will eliminate a dependency and some uneccessary macro magic.

Guida contributor