Skip to content

Commit

Permalink
i32 for related items
Browse files Browse the repository at this point in the history
  • Loading branch information
akarras committed Nov 13, 2024
1 parent 203405b commit 9eb28ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ultros-frontend/ultros-app/src/components/related_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ fn item_set_iter(item: &'static Item) -> impl Iterator<Item = &'static Item> {

/// 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<Self::Item> {
// I don't remember entirely if the ingredients all are in order.
Expand Down

0 comments on commit 9eb28ad

Please sign in to comment.