use std::sync::Once::new() rather than ONCE_INIT
Updated to v3-master per discussion on
@@ -459,7 +459,7 @@ macro_rules! crate_version {
macro_rules! crate_authors {
($sep:expr) => {{
use std::ops::Deref;
- use std::sync::{Once, ONCE_INIT};
+ use std::sync::Once;
#[allow(missing_copy_implementations)]
#[allow(dead_code)]
@@ -472,7 +472,7 @@ macro_rules! crate_authors {
#[allow(unsafe_code)]
fn deref(&self) -> &'static str {
- static ONCE: Once = ONCE_INIT;
+ static ONCE: Once = Once::new();
static mut VALUE: *const String = 0 as *const String;
unsafe {
