We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26335f commit af4ffc7Copy full SHA for af4ffc7
src/macros.rs
@@ -6,8 +6,8 @@
6
#[cfg(feature = "with_client_implementation")]
7
macro_rules! release_name {
8
() => {{
9
- use std::sync::{Once, ONCE_INIT};
10
- static mut INIT: Once = ONCE_INIT;
+ use std::sync::Once;
+ static mut INIT: Once = Once::new();
11
static mut RELEASE: Option<String> = None;
12
unsafe {
13
INIT.call_once(|| {
0 commit comments