mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
ec342a2338
@ -405,8 +405,6 @@ impl FigureMgr {
|
|||||||
self.golem_model_cache.clean(&mut self.col_lights, tick);
|
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) {
|
pub fn update_lighting(&mut self, scene_data: &SceneData) {
|
||||||
span!(_guard, "update_lighting", "FigureManager::update_lighting");
|
span!(_guard, "update_lighting", "FigureManager::update_lighting");
|
||||||
let ecs = scene_data.state.ecs();
|
let ecs = scene_data.state.ecs();
|
||||||
@ -419,7 +417,7 @@ impl FigureMgr {
|
|||||||
{
|
{
|
||||||
// Add LightAnimation for objects with a LightEmitter
|
// Add LightAnimation for objects with a LightEmitter
|
||||||
let mut anim_storage = ecs.write_storage::<LightAnimation>();
|
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 {
|
let anim = LightAnimation {
|
||||||
offset: body
|
offset: body
|
||||||
.map(|b| b.default_light_offset())
|
.map(|b| b.default_light_offset())
|
||||||
|
Loading…
Reference in New Issue
Block a user