From 9c6cdbba71e06cbae60c5bdd9caf03bc06e98a36 Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Sat, 17 Jul 2021 17:12:29 +0200 Subject: [PATCH] Resolve all '#[allow(clippy::redundant_pattern_matching)]' error supressions --- voxygen/src/scene/figure/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/voxygen/src/scene/figure/mod.rs b/voxygen/src/scene/figure/mod.rs index 67d947f3be..79a5ee1304 100644 --- a/voxygen/src/scene/figure/mod.rs +++ b/voxygen/src/scene/figure/mod.rs @@ -405,8 +405,6 @@ impl FigureMgr { self.golem_model_cache.clean(&mut self.col_lights, tick); } - #[allow(clippy::redundant_pattern_matching)] - // TODO: Pending review in #587 pub fn update_lighting(&mut self, scene_data: &SceneData) { span!(_guard, "update_lighting", "FigureManager::update_lighting"); let ecs = scene_data.state.ecs(); @@ -419,7 +417,7 @@ impl FigureMgr { { // Add LightAnimation for objects with a LightEmitter let mut anim_storage = ecs.write_storage::(); - if let None = anim_storage.get_mut(entity) { + if anim_storage.get_mut(entity).is_none() { let anim = LightAnimation { offset: body .map(|b| b.default_light_offset())