Skip to content

Commit

Permalink
🚨 Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kenji committed Jul 19, 2024
1 parent 83a9860 commit 3978fee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl Centerpiece {
Some(active_entry_id) => self
.plugins
.iter()
.filter(|plugin| plugin.entries.len() > 0)
.filter(|plugin| !plugin.entries.is_empty())
.position(|plugin| {
plugin
.entries
Expand Down
4 changes: 2 additions & 2 deletions client/src/plugin/applications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn to_entry(
) -> Option<crate::model::Entry> {
let title = name(desktop_entry);

if !is_visible(&desktop_entry) {
if !is_visible(desktop_entry) {
log::debug!(target: "applications", "Desktop entry with name '{}' will be hidden because of its properties.", title);
return None;
}
Expand Down Expand Up @@ -98,7 +98,7 @@ fn is_visible(desktop_entry: &freedesktop_desktop_entry::DesktopEntry) -> bool {
fn terminal_command(desktop_entry: &freedesktop_desktop_entry::DesktopEntry) -> Option<String> {
if !desktop_entry
.categories()?
.split(";")
.split(';')
.any(|category| category == "TerminalEmulator")
{
return None;
Expand Down

0 comments on commit 3978fee

Please sign in to comment.