Skip to content

Commit

Permalink
chore: fix clippy 1.84 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
banditopazzo committed Jan 9, 2025
1 parent e29bd9d commit c9afb70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bpf-common/src/test_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl<T: Debug> TestResult<T> {
for expectation in self.expectations {
match expectation {
Expectation::Predicate(predicate) => {
let found = events.iter().map(predicate).any(|x| x);
let found = events.iter().any(predicate);
if !found {
lines.push(format!("event not found among {} analyzed", events.len()));
success = false;
Expand Down

0 comments on commit c9afb70

Please sign in to comment.