Skip to content

Commit

Permalink
flatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
zachschuermann committed Feb 28, 2025
1 parent 751e582 commit 69284d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/src/engine/default/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,15 +664,14 @@ mod tests {
(
4, // buffer_size
(0..250)
.map(|i| {
.flat_map(|i| {
[
ordered_paths[1 + 4 * i].clone(),
ordered_paths[4 * i].clone(),
ordered_paths[3 + 4 * i].clone(),
ordered_paths[2 + 4 * i].clone(),
]
})
.flatten()
.collect_vec(),
),
];
Expand Down

0 comments on commit 69284d2

Please sign in to comment.