diff options
Diffstat (limited to 'server/src/data/index.rs')
-rw-r--r-- | server/src/data/index.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/server/src/data/index.rs b/server/src/data/index.rs index 1c206d83..e056cfc0 100644 --- a/server/src/data/index.rs +++ b/server/src/data/index.rs @@ -11,14 +11,11 @@ impl GamedataIndex { self.recipe_passive_by_input.clear(); for (ri, r) in data.recipes() { - match r { - Recipe::Passive { input, .. } => { - self.recipe_passive_by_input - .entry(*input) - .or_default() - .push(ri); - } - _ => (), + if let Recipe::Passive { input, .. } = r { + self.recipe_passive_by_input + .entry(*input) + .or_default() + .push(ri); } } } |