Skip to content

Commit

Permalink
Allow static_mut_refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Dec 31, 2024
1 parent 96eaaa2 commit f8a2840
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ macro_rules! lazy_static {
static INIT: std::sync::Once = std::sync::Once::new();

INIT.call_once(|| unsafe { VALUE = Some($init) });
#[allow(static_mut_refs)]
unsafe { VALUE.as_ref() }.expect("failed to get lazy static value")
}};
}
Expand Down

0 comments on commit f8a2840

Please sign in to comment.