Skip to content

Commit

Permalink
address clippy fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
p-hueber committed Oct 20, 2024
1 parent 4f4f52c commit 7ee9a12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Actor {

impl Actor {
fn is_user_wanted(&self, np: &NowPlaying) -> bool {
if self.users.len() == 0 {
if self.users.is_empty() {
// Always match if we have no users in the list.
true
} else {
Expand Down Expand Up @@ -135,6 +135,7 @@ impl Actor {
}

#[cfg(test)]
#[allow(clippy::too_many_lines)]
mod test {
use std::time::Duration;

Expand Down

0 comments on commit 7ee9a12

Please sign in to comment.