From 499f4994a6a8507dcca20ed820c851be9a2343c1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 16 Sep 2024 18:00:28 +0200 Subject: fix all clippy things --- server/src/data/index.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'server/src/data/index.rs') 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); } } } -- cgit v1.2.3-70-g09d2