Skip to content

Commit

Permalink
chore: listen to new clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Sep 6, 2024
1 parent ffa4548 commit 18419b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lala_bar/src/launcher/applications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fn get_icon_path_from_xdgicon(iconname: &str) -> Option<PathBuf> {
}
for prefix in ICONS_SIZE {
let iconpath =
xdg::BaseDirectories::with_prefix(&format!("icons/hicolor/{prefix}/apps")).unwrap();
xdg::BaseDirectories::with_prefix(format!("icons/hicolor/{prefix}/apps")).unwrap();
if let Some(iconpath) = iconpath.find_data_file(format!("{iconname}.png")) {
return Some(iconpath);
}
Expand All @@ -131,12 +131,12 @@ fn get_icon_path_from_xdgicon(iconname: &str) -> Option<PathBuf> {
}
for themes in THEMES_LIST {
let iconpath =
xdg::BaseDirectories::with_prefix(&format!("icons/{themes}/apps/48")).unwrap();
xdg::BaseDirectories::with_prefix(format!("icons/{themes}/apps/48")).unwrap();
if let Some(iconpath) = iconpath.find_data_file(format!("{iconname}.svg")) {
return Some(iconpath);
}
let iconpath =
xdg::BaseDirectories::with_prefix(&format!("icons/{themes}/apps/64")).unwrap();
xdg::BaseDirectories::with_prefix(format!("icons/{themes}/apps/64")).unwrap();
if let Some(iconpath) = iconpath.find_data_file(format!("{iconname}.svg")) {
return Some(iconpath);
}
Expand Down

0 comments on commit 18419b9

Please sign in to comment.