diff --git a/src/macros.rs b/src/macros.rs index 186cfc833c6..3b5a36b99b2 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -466,6 +466,7 @@ macro_rules! crate_version { macro_rules! crate_authors { ($sep:expr) => {{ use std::ops::Deref; + #[allow(deprecated)] use std::sync::{Once, ONCE_INIT}; #[allow(missing_copy_implementations)] @@ -479,6 +480,7 @@ macro_rules! crate_authors { #[allow(unsafe_code)] fn deref(&self) -> &'static str { + #[allow(deprecated)] static ONCE: Once = ONCE_INIT; static mut VALUE: *const String = 0 as *const String;