We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceb43c8 commit 6168259Copy full SHA for 6168259
1 file changed
crates/core/examples/bench.rs
@@ -18,7 +18,7 @@ fn main() {
18
}
19
20
21
- let node_ids = graph.nodes().keys().map(|id| *id).collect::<Vec<_>>();
+ let node_ids = graph.nodes().keys().copied().collect::<Vec<_>>();
22
23
generate_chain_edges(&mut graph, node_ids);
24
0 commit comments