diff options
| author | nieboczek <bartekkoraliki@gmail.com> | 2025-12-16 15:26:02 +0100 |
|---|---|---|
| committer | nieboczek <bartekkoraliki@gmail.com> | 2025-12-16 15:30:01 +0100 |
| commit | 348e44880c81f1d223f53ab11897bae427073d42 (patch) | |
| tree | 81ff7f3a167cdd5a4652f85441dc4607c317081b /server/tools | |
| parent | 6419d8c8139d697af309b7db2e698effa8290582 (diff) | |
| download | hurrycurry-348e44880c81f1d223f53ab11897bae427073d42.tar hurrycurry-348e44880c81f1d223f53ab11897bae427073d42.tar.bz2 hurrycurry-348e44880c81f1d223f53ab11897bae427073d42.tar.zst | |
Return an Iterator over recipe inputs and outputs instead of a Vec
Diffstat (limited to 'server/tools')
| -rw-r--r-- | server/tools/src/graph_summary.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/src/graph_summary.rs b/server/tools/src/graph_summary.rs index c6db2678..3b5c577c 100644 --- a/server/tools/src/graph_summary.rs +++ b/server/tools/src/graph_summary.rs @@ -46,8 +46,8 @@ pub(crate) fn graph_summary() -> Result<()> { let mut nodes = Vec::new(); for r in &data.recipes { nodes.push(Node { - inputs: r.inputs(), - outputs: r.outputs(), + inputs: r.inputs().collect(), + outputs: r.outputs().collect(), tool_item: None, tool_tile: r.tile(), instant: matches!(r, Recipe::Instant { .. }), |