Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Jun 28, 2024
1 parent c532ba4 commit fe353a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/modules/tray/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub fn get_tray_icons() -> Result<Vec<TrayIcon>> {
let is_win10 = is_windows_10();
for element in children {
let name = element.CurrentName()?.to_string();
if name.len() > 0 && (is_win10 || element.CurrentAutomationId()? == "NotifyItemIcon") {
if !name.is_empty() && (is_win10 || element.CurrentAutomationId()? == "NotifyItemIcon") {
let registry = tray_from_registry.iter().find(|t| {
let trimmed = name.trim();
t.initial_tooltip == trimmed
Expand Down

0 comments on commit fe353a3

Please sign in to comment.