Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4b597b4

Browse files
committed
iui: ffi: replace ATOMIC_BOOL_INIT with AtomicBool::new()
The constant ATOMIC_BOOL_INIT was deprecated when const fn support wasadded, because `AtomicBool::new()` can now be used. Replace thisconstant with the function call in order to remove a deprecated warning.Signed-off-by: Sean Cross <sean@xobs.io>
1 parentae9d019 commit4b597b4

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-
staticINITIALIZED:AtomicBool =ATOMIC_BOOL_INIT;
4+
staticINITIALIZED:AtomicBool =AtomicBool::new(false);
55

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp