aboutsummaryrefslogtreecommitdiff
path: root/server/tools/src/graph.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/src/graph.rs')
-rw-r--r--server/tools/src/graph.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/src/graph.rs b/server/tools/src/graph.rs
index 53f70d99..a65ffc97 100644
--- a/server/tools/src/graph.rs
+++ b/server/tools/src/graph.rs
@@ -16,8 +16,8 @@
*/
use anyhow::Result;
+use hurrycurry_data::index::DataIndex;
use hurrycurry_protocol::{Demand, ItemIndex, Recipe, RecipeIndex};
-use hurrycurry_server::data::DataIndex;
pub(crate) fn graph() -> Result<()> {
let mut index = DataIndex::default();
@@ -25,7 +25,7 @@ pub(crate) fn graph() -> Result<()> {
println!("digraph {{");
- let (data, _, _) = index.generate("5star")?;
+ let (data, _) = index.generate("5star")?;
for i in 0..data.item_names.len() {
println!("i{i} [label=\"{}\"]", data.item_name(ItemIndex(i)))
}