Skip to content

Commit 4b597b4

Browse files
committed
iui: ffi: replace ATOMIC_BOOL_INIT with AtomicBool::new()
The constant ATOMIC_BOOL_INIT was deprecated when const fn support was added, because `AtomicBool::new()` can now be used. Replace this constant with the function call in order to remove a deprecated warning. Signed-off-by: Sean Cross <[email protected]>
1 parent ae9d019 commit 4b597b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iui/src/ffi_tools.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Utilities to manage the state of the interface to the libUI bindings.
2-
use std::sync::atomic::{AtomicBool, Ordering, ATOMIC_BOOL_INIT};
2+
use std::sync::atomic::{AtomicBool, Ordering};
33

4-
static INITIALIZED: AtomicBool = ATOMIC_BOOL_INIT;
4+
static INITIALIZED: AtomicBool = AtomicBool::new(false);
55

66
/// Set the global flag stating that libUI is initialized.
77
///

0 commit comments

Comments
 (0)