Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed Sep 9, 2024
1 parent fff1eea commit 4fe88b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions data/src/config/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ impl ServerMessage {

let is_channel_filtered = |list: &Vec<String>, channel: &str| -> bool {
let wildcards = ["*", "all"];

list.iter()
.any(|item| wildcards.contains(&item.as_str()) || item == channel)


list.iter()
.any(|item| wildcards.contains(&item.as_str()) || item == channel)
};

let channel_included = is_channel_filtered(&self.include, channel);
Expand Down

0 comments on commit 4fe88b7

Please sign in to comment.