Skip to content

Commit 6bfea24

Browse files
committed
clippy
1 parent 6767a82 commit 6bfea24

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

crates/bevy_ecs/src/query/state.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -466,26 +466,22 @@ impl<D: QueryData, F: QueryFilter> QueryState<D, F> {
466466
);
467467

468468
if self.archetype_generation != other.archetype_generation {
469-
warn!("You have tried to join queries with different archetype_generations. This could lead to unpredicatable results.");
469+
warn!("You have tried to join queries with different archetype_generations. This could lead to unpredictable results.");
470470
}
471471

472472
// take the intersection of the matched ids
473473
let matched_tables: FixedBitSet = self
474474
.matched_tables
475475
.intersection(&other.matched_tables)
476476
.collect();
477-
let matched_table_ids: Vec<TableId> = matched_tables
478-
.ones()
479-
.map(|id| TableId::from_usize(id))
480-
.collect();
477+
let matched_table_ids: Vec<TableId> =
478+
matched_tables.ones().map(TableId::from_usize).collect();
481479
let matched_archetypes: FixedBitSet = self
482480
.matched_archetypes
483481
.intersection(&other.matched_archetypes)
484482
.collect();
485-
let matched_archetype_ids: Vec<ArchetypeId> = matched_archetypes
486-
.ones()
487-
.map(|id| ArchetypeId::new(id))
488-
.collect();
483+
let matched_archetype_ids: Vec<ArchetypeId> =
484+
matched_archetypes.ones().map(ArchetypeId::new).collect();
489485

490486
QueryState {
491487
world_id: self.world_id,

0 commit comments

Comments
 (0)