Skip to content

Commit

Permalink
Avoid clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeicor committed Dec 7, 2024
1 parent 96471c5 commit b1c96bf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,8 @@ impl CliServer {

let mut cur_event = 1u64;
for x in rx {
if x.iter().all(|event|
match event.kind {
EventKind::Access(AccessKind::Open(_)) => true,
_ => false,
}
) {
if x.iter().all(|event|
matches!(event.kind, EventKind::Access(AccessKind::Open(_)))) {
continue;
}
let notified = modified_sender_clone.send(cur_event)? - 1 /* initial receiver always available */;
Expand Down

0 comments on commit b1c96bf

Please sign in to comment.