From 673da6c2f4662d9e35897ffb2558648776e81393 Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Fri, 13 Dec 2024 17:49:36 +0800 Subject: [PATCH] Fix clippy --- guest/examples/examples/median.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guest/examples/examples/median.rs b/guest/examples/examples/median.rs index 77c4c5ade..d39d430c0 100644 --- a/guest/examples/examples/median.rs +++ b/guest/examples/examples/median.rs @@ -14,7 +14,7 @@ fn main() { let numbers: &ArchivedVec = ceno_rt::read(); let median_candidate: &Archived = 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); }