summaryrefslogtreecommitdiff
path: root/ecs/src/component/storage.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-10-15 15:34:21 +0200
committerHampusM <hampus@hampusmat.com>2025-10-15 15:34:21 +0200
commitb3bc691aedb46519e36db8e9eba0e37ac3cefb4a (patch)
tree362875d247f10c888b9de8bc7bdaebd7d86a4e64 /ecs/src/component/storage.rs
parent6ed1d5a9b0723049a15dc7896e34e5cd650f62c7 (diff)
refactor(ecs): make fn arg to insert_at_part_pt_by_key return ref
Diffstat (limited to 'ecs/src/component/storage.rs')
-rw-r--r--ecs/src/component/storage.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/component/storage.rs b/ecs/src/component/storage.rs
index 86e124f..a8711c5 100644
--- a/ecs/src/component/storage.rs
+++ b/ecs/src/component/storage.rs
@@ -644,7 +644,7 @@ impl<'component_storage> Iterator for ArchetypeRefIter<'component_storage, '_>
add_edge_archetype_comps
.insert_at_part_pt_by_key(add_edge_component_id, |comp_id| {
- *comp_id
+ comp_id
});
self.storage.imaginary_archetypes.borrow_mut().push(
@@ -712,7 +712,7 @@ impl ArchetypeRefIter<'_, '_>
let mut add_edge_comp_ids = imaginary_archetype_comps.to_vec();
- add_edge_comp_ids.insert_at_part_pt_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);