diff options
Diffstat (limited to 'ecs/src/component/storage.rs')
-rw-r--r-- | ecs/src/component/storage.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ecs/src/component/storage.rs b/ecs/src/component/storage.rs index 4ec5222..86e124f 100644 --- a/ecs/src/component/storage.rs +++ b/ecs/src/component/storage.rs @@ -642,10 +642,10 @@ impl<'component_storage> Iterator for ArchetypeRefIter<'component_storage, '_> let mut add_edge_archetype_comps = archetype.component_ids_sorted().collect::<Vec<_>>(); - add_edge_archetype_comps.insert_at_partition_point_by_key( - add_edge_component_id, - |comp_id| *comp_id, - ); + add_edge_archetype_comps + .insert_at_part_pt_by_key(add_edge_component_id, |comp_id| { + *comp_id + }); self.storage.imaginary_archetypes.borrow_mut().push( ImaginaryArchetype { @@ -712,8 +712,7 @@ impl ArchetypeRefIter<'_, '_> let mut add_edge_comp_ids = imaginary_archetype_comps.to_vec(); - add_edge_comp_ids - .insert_at_partition_point_by_key(unique_comp_id, |id| *id); + add_edge_comp_ids.insert_at_part_pt_by_key(unique_comp_id, |id| *id); let add_edge = ArchetypeId::new(&add_edge_comp_ids); |