Skip to content

Commit 01448d3

Browse files
committed
chore: conditionally import AtomicU64 only on non-macOS
AtomicU64 is only used in #[cfg(not(target_os = macos))] blocks (focus-loss debounce for Windows/Linux). On macOS it generates an unused import warning. Moved the import behind the same cfg guard.
1 parent 7a974c7 commit 01448d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src-tauri/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ mod tray;
1010

1111
use commands::shortcuts::GlobalShortcutState;
1212
use commands::notifications::NotificationState;
13-
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
13+
#[cfg(not(target_os = "macos"))]
14+
use std::sync::atomic::AtomicU64;
15+
use std::sync::atomic::{AtomicBool, Ordering};
1416
use std::sync::Arc;
1517
use tauri_plugin_window_state::{StateFlags, WindowExt};
1618

0 commit comments

Comments
 (0)