Closed JacobEberhardt closed 5 years ago
ONCE_INIT
won't actually be deprecated for another two releases.
We should just add a targeted allow(deprecated)
to its use of ONCE_INIT
. There's not much point in bumping the MSRV from 1.24 to 1.31 just so Once::new
can be used.
Sorry for commenting on a closed issue... I am wondering whether you considered using https://github.com/dtolnay/rustversion So if the rustc version is 1.31 or newer use Once::new otherwise use ONCE_INIT Or something. Thanks for maintaining lazy_static
std::sync::ONCE_INIT
is deprecated which leads to warnings when building. Would be great, if this could be replaced.Built with rustc 1.38.0-nightly (6e310f2ab 2019-07-07)
= note: #[warn(deprecated)] on by default`