As of Rust 1.63, Mutex::new is now const. This means that we no longer need lazy_static in order to have a static variable containing a Mutex.
It is however not really possible yet to remove lazy_static because we're using some non-const functions such as BinaryHeap::new or BTreeMap::new.
As of Rust 1.63,
Mutex::newis nowconst. This means that we no longer needlazy_staticin order to have a static variable containing aMutex.It is however not really possible yet to remove
lazy_staticbecause we're using some non-const functions such asBinaryHeap::neworBTreeMap::new.