From af4ffffef4ed87aa4049614c34c0668c14a6f271 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Wed, 12 Aug 2020 17:01:45 -0400 Subject: [PATCH] Suppress deprecation warning --- src/macros.rs | 2 ++ 1 file changed, 2 insertions(+) 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;