Skip to content

Commit

Permalink
Suppress deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Aug 12, 2020
1 parent fdee158 commit af4ffff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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;

Expand Down

0 comments on commit af4ffff

Please sign in to comment.