1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-09-15 19:26:58 +02:00

chore: clippy/fmt

This commit is contained in:
Jake Stanger 2025-07-14 19:55:46 +01:00
commit f1a8b42cfa
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
2 changed files with 5 additions and 2 deletions

View file

@ -328,7 +328,7 @@ fn files(dir: &Path) -> Vec<PathBuf> {
pub fn open_program(file_name: &str, str: &str) {
let expanded = str.replace("{app_name}", file_name);
let launch_command_parts: Vec<&str> = expanded.split_whitespace().collect();
if let Err(err) = Command::new(&launch_command_parts[0])
if let Err(err) = Command::new(launch_command_parts[0])
.args(&launch_command_parts[1..])
.stdout(Stdio::null())
.stderr(Stdio::null())

View file

@ -181,7 +181,10 @@ fn on_update(
UpdateEvent::AttentionIcon(_icon) => {
warn!("received unimplemented NewAttentionIcon event");
}
UpdateEvent::Icon { icon_name, icon_pixmap} => {
UpdateEvent::Icon {
icon_name,
icon_pixmap,
} => {
menu_item.icon_pixmap = icon_pixmap;
if icon_name.as_ref() != menu_item.icon_name() {