Merge branch 'tygyh/Resolve-all-'#-allow(clippy--redundant_pattern_matching)]'-error-supressions' into 'master'

Resolve all '#[allow(clippy::redundant_pattern_matching)]' error supressions

See merge request veloren/veloren!2622
This commit is contained in:
Imbris 2021-07-18 12:26:44 +00:00
commit ec342a2338

View File

@ -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::<LightAnimation>();
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())