Fix linux compile errors
This commit is contained in:
parent
b20b005283
commit
ed0dacca43
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ pub fn is_wayland() -> bool {
|
|||
|
||||
#[cfg(target_os = "linux")]
|
||||
pub fn is_wayland() -> bool {
|
||||
static IS_WAYLAND: OnceLock<bool> = OnceLock::new();
|
||||
static IS_WAYLAND: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
|
||||
|
||||
*IS_WAYLAND.get_or_init(|| {
|
||||
if cfg!(target_os = "linux") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue