We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Mutex::new
const
lazy_static
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.
BinaryHeap::new
BTreeMap::new
The text was updated successfully, but these errors were encountered:
BTreeMap::new will be stable in an upcoming version: rust-lang/rust#102197
Sorry, something went wrong.
No branches or pull requests
As of Rust 1.63,
Mutex::new
is nowconst
. This means that we no longer needlazy_static
in order to have a static variable containing aMutex
.It is however not really possible yet to remove
lazy_static
because we're using some non-const functions such asBinaryHeap::new
orBTreeMap::new
.The text was updated successfully, but these errors were encountered: