Skip to content

Commit

Permalink
Revert "i32 for related items"
Browse files Browse the repository at this point in the history
This reverts commit 9eb28ad.
  • Loading branch information
akarras committed Nov 13, 2024
1 parent 9eb28ad commit 3c61fdf
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, i32);
pub(crate) struct IngredientsIter<'a>(&'a Recipe, u8);
impl<'a> IngredientsIter<'a> {
pub(crate) fn new(recipe: &'a Recipe) -> Self {
Self(recipe, 0)
}
}
impl<'a> Iterator for IngredientsIter<'a> {
type Item = (ItemId, i32);
type Item = (ItemId, u8);

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 3c61fdf

Please sign in to comment.