Skip to content

Commit af4ffc7

Browse files
ccakesjan-auer
authored andcommitted
ref: Stop using std::sync::ONCE_INIT (#147)
1 parent d26335f commit af4ffc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#[cfg(feature = "with_client_implementation")]
77
macro_rules! release_name {
88
() => {{
9-
use std::sync::{Once, ONCE_INIT};
10-
static mut INIT: Once = ONCE_INIT;
9+
use std::sync::Once;
10+
static mut INIT: Once = Once::new();
1111
static mut RELEASE: Option<String> = None;
1212
unsafe {
1313
INIT.call_once(|| {

0 commit comments

Comments
 (0)