Skip to content

Commit

Permalink
Collect neighbors vec in benches
Browse files Browse the repository at this point in the history
  • Loading branch information
s1ck committed Nov 27, 2024
1 parent 28164f5 commit f2e7e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/builder/benches/topology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn bench_all_targets<G>(
Direction::Incoming => graph.in_neighbors(node),
Direction::Undirected => unreachable!(),
};
black_box(neighbors);
black_box(neighbors.collect::<Vec<_>>());
}
},
criterion::BatchSize::SmallInput,
Expand Down

0 comments on commit f2e7e38

Please sign in to comment.