Skip to content

Commit 903b6bf

Browse files
committed
clippy fixes
1 parent a7880b7 commit 903b6bf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/sync.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ use bevy::{
88
event::EventCursor,
99
},
1010
prelude::*,
11-
reflect::{serde::ReflectSerializer, ReflectFromPtr},
11+
reflect::{ReflectFromPtr, serde::ReflectSerializer},
1212
utils::{AHasher, HashMap},
1313
};
1414
use rerun::external::re_log::ResultExt;
1515

1616
use crate::{
17-
compute_entity_path, get_component_logger, DefaultRerunComponentLoggers, RerunComponentLoggers,
17+
DefaultRerunComponentLoggers, RerunComponentLoggers, compute_entity_path, get_component_logger,
1818
};
1919

2020
// ---
@@ -168,9 +168,7 @@ fn sync_components(
168168
for component in world.inspect_entity(entity_id) {
169169
let mut has_changed = entity
170170
.get_change_ticks_by_id(component.id())
171-
.map_or(false, |changes| {
172-
changes.is_changed(last_change_tick, change_tick)
173-
});
171+
.is_some_and(|changes| changes.is_changed(last_change_tick, change_tick));
174172

175173
// TODO(cmc): implement proper subscription model for asset dependencies
176174
has_changed |=

0 commit comments

Comments
 (0)