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 b48b0c5 commit 95cbd48Copy full SHA for 95cbd48
src/lazy_static.rs
@@ -93,7 +93,7 @@ macro_rules! lazy_static {
93
static mut __static: *const $T = 0 as *const $T;
94
static mut __ONCE: Once = ONCE_INIT;
95
__ONCE.call_once(|| {
96
- __static = transmute::<Box<$T>, *const $T>(box() ($e));
+ __static = transmute::<Box<$T>, *const $T>(Box::new(($e)));
97
});
98
let static_ref = &*__static;
99
require_sync(static_ref);
0 commit comments