From a21fb5a644f1587be965098079b5d1f5d18ddafd Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 27 May 2022 21:24:52 +0000 Subject: [PATCH] forgot about dre but not clippy --- src/ship/drops/rare_drop_table.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ship/drops/rare_drop_table.rs b/src/ship/drops/rare_drop_table.rs index dce35e3..fc44b5b 100644 --- a/src/ship/drops/rare_drop_table.rs +++ b/src/ship/drops/rare_drop_table.rs @@ -170,8 +170,8 @@ impl RareDropTable { self.rates.get(monster) .and_then(|drop_rates| { drop_rates.iter() - .filter_map(|drop_rate| { - Some(self.apply_item_stats(map_area, drop_rate.item, rng)) + .map(|drop_rate| { + self.apply_item_stats(map_area, drop_rate.item, rng) }).next() }) }