fix(ci): Resolve clippy warnings for CI pipeline

- Add Default impl for AnimatorState (new_without_default)
- Fix needless late initialization in tray.rs
- Collapse else-if in setup_aura.rs
- Fix mut_range_bound in anime-led-scan example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
mihai2mn
2026-01-24 18:05:19 +01:00
parent 17bbd8aabb
commit 8d6a668f9e
4 changed files with 13 additions and 9 deletions

View File

@@ -167,16 +167,15 @@ pub fn init_tray(
};
// TODO: return an error to the UI
let tray;
match tray_init.disable_dbus_name(true).spawn().await {
Ok(t) => tray = t,
let tray = match tray_init.disable_dbus_name(true).spawn().await {
Ok(t) => t,
Err(e) => {
log::error!(
"Tray unable to be initialised: {e:?}. Do you have a system tray enabled?"
);
return;
}
}
};
info!("Tray started");
ICONS.get_or_init(|| Icons {

View File

@@ -216,10 +216,8 @@ pub fn setup_aura_page(ui: &MainWindow, _states: Arc<Mutex<Config>>) {
if let Err(e) = aura_inner.stop_animation().await {
error!("Failed to stop animation: {e}");
}
} else {
if let Err(e) = aura_inner.start_animation(json).await {
error!("Failed to start animation: {e}");
}
} else if let Err(e) = aura_inner.start_animation(json).await {
error!("Failed to start animation: {e}");
}
});
});