Skip to content

Commit

Permalink
ref: Stop using std::sync::ONCE_INIT (seanmonstar#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccakes authored and jan-auer committed Jul 29, 2019
1 parent d26335f commit af4ffc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#[cfg(feature = "with_client_implementation")]
macro_rules! release_name {
() => {{
use std::sync::{Once, ONCE_INIT};
static mut INIT: Once = ONCE_INIT;
use std::sync::Once;
static mut INIT: Once = Once::new();
static mut RELEASE: Option<String> = None;
unsafe {
INIT.call_once(|| {
Expand Down

0 comments on commit af4ffc7

Please sign in to comment.