From 348e44880c81f1d223f53ab11897bae427073d42 Mon Sep 17 00:00:00 2001 From: nieboczek Date: Tue, 16 Dec 2025 15:26:02 +0100 Subject: Return an Iterator over recipe inputs and outputs instead of a Vec --- server/bot/src/algos/simple.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/bot/src') diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs index 050c2081..ba617707 100644 --- a/server/bot/src/algos/simple.rs +++ b/server/bot/src/algos/simple.rs @@ -120,7 +120,7 @@ impl Context<'_, S> { .recipes .iter() .enumerate() - .find(|(_, r)| r.outputs().contains(&item)) + .find(|(_, r)| r.outputs().any(|i| i == item)) .map(|(i, _)| RecipeIndex(i)) } pub fn find_item_on_map(&self, item: ItemIndex) -> Option { -- cgit v1.3