diff --git a/ultros-frontend/ultros-app/src/components/related_items.rs b/ultros-frontend/ultros-app/src/components/related_items.rs index ceb40fc0..a226287e 100644 --- a/ultros-frontend/ultros-app/src/components/related_items.rs +++ b/ultros-frontend/ultros-app/src/components/related_items.rs @@ -56,14 +56,14 @@ fn item_set_iter(item: &'static Item) -> impl Iterator { /// Creates an iterator over the ingredients in a recipe #[derive(Copy, Clone, Debug)] -pub(crate) struct IngredientsIter<'a>(&'a Recipe, u8); +pub(crate) struct IngredientsIter<'a>(&'a Recipe, i32); impl<'a> IngredientsIter<'a> { pub(crate) fn new(recipe: &'a Recipe) -> Self { Self(recipe, 0) } } impl<'a> Iterator for IngredientsIter<'a> { - type Item = (ItemId, u8); + type Item = (ItemId, i32); fn next(&mut self) -> Option { // I don't remember entirely if the ingredients all are in order.