From 01448d3575c58d2b32045746bfc43b1a521d7bb5 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 25 Jun 2026 16:12:32 +0530 Subject: [PATCH] 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. --- src-tauri/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index e1265ff..00cab78 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -10,7 +10,9 @@ mod tray; use commands::shortcuts::GlobalShortcutState; use commands::notifications::NotificationState; -use std::sync::atomic::{AtomicBool, AtomicU64, Ordering}; +#[cfg(not(target_os = "macos"))] +use std::sync::atomic::AtomicU64; +use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; use tauri_plugin_window_state::{StateFlags, WindowExt};