Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdjaustin committed Nov 13, 2023
1 parent 8b839ea commit 43014a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipld/amt/src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ where
/// # anyhow::Ok(())
/// ```
pub fn iter_from(&self, key: usize) -> Vec<Result<(usize, &V), crate::Error>> {
let mut iter = self.iter();
let iter = self.iter();
let mut results = Vec::new();
while let Some(res) = iter.next() {
for res in iter {
let (k, v) = res.expect("Failed to generate iterator from AMT");
if k >= key {
results.push(Ok((k, v)));
Expand Down

0 comments on commit 43014a7

Please sign in to comment.