fix failing tests
This commit is contained in:
14 files changed
+51
-149
No files matched your search
+1
-4
@@ -99,10 +99,7 @@ fn parse(input: &str) -> Database {
|
||||
}
|
||||
if parsing_ranges {
|
||||
let (start, end) = line.split_once('-').unwrap();
|
||||
fresh_ingredients.push(RangeInclusive::new(
|
||||
start.parse().unwrap(),
|
||||
end.parse().unwrap(),
|
||||
));
|
||||
fresh_ingredients.push(RangeInclusive::new(start.parse().unwrap(), end.parse().unwrap()));
|
||||
} else {
|
||||
available_ingredients.push(line.parse().unwrap())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user