Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Aug 16, 2024
1 parent 4300622 commit 1396b5a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions zero_bin/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,11 @@ where
.into_iter()
.map(|mut chunk| {
// We convert to tuple of (current, Option previous block)
if let Some(first) = chunk.next() {
let second = chunk.next();
(first, second)
} else {
panic!("not possible according to itertools::Iterator::chunks definition")
}
let first = chunk
.next()
.expect("must be valid according to itertools::Iterator::chunks definition");
let second = chunk.next();
(first, second)
})
.collect::<Vec<_>>();

Expand Down

0 comments on commit 1396b5a

Please sign in to comment.