Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚨 Fix clippy warnings #171

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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