Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Dec 13, 2024
1 parent 7f38f61 commit 673da6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guest/examples/examples/median.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() {
let numbers: &ArchivedVec<u32> = ceno_rt::read();
let median_candidate: &Archived<u32> = ceno_rt::read();
let median_candidate = &&median_candidate.to_native();
let smaller = numbers.into_iter().filter(move |x| x < median_candidate).count();
let smaller = numbers.iter().filter(move |x| x < median_candidate).count();
assert_eq!(smaller, numbers.len() / 2);
println!("{}", median_candidate);
}

0 comments on commit 673da6c

Please sign in to comment.