Skip to content

Commit 4cdc00e

Browse files
committed
optimize imports
1 parent 831df44 commit 4cdc00e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

RustApp/src/ui/icon.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,3 @@ macro_rules! tray_icon {
7373
}};
7474
($name:literal) => {{ tray_icon!($name, 32, 32) }};
7575
}
76-
77-
// placeholder here
78-
#[cfg(target_os = "linux")]
79-
#[macro_export]
80-
macro_rules! tray_icon {
81-
() => {};
82-
}

RustApp/src/ui/tray.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use tray_icon::{
99
menu::{Menu, MenuEvent, MenuItem, PredefinedMenuItem},
1010
};
1111

12+
#[cfg(not(target_os = "linux"))]
1213
use crate::{fl, tray_icon};
1314

1415
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)