diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-24 19:00:38 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-24 19:11:11 +0200 |
commit | b8417d20765755cfa2cecacb11c77e3abbafd546 (patch) | |
tree | 5f62502eeb846faba66bd204f8dc028ef5f7aa5e /ecs/src/query.rs | |
parent | 36886e343781bf0ddf7458d5c6db5b5724c918e4 (diff) |
fix(ecs): prevent unnecessary locking in Sequence::from_components
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r-- | ecs/src/query.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs index 61e2797..73792b3 100644 --- a/ecs/src/query.rs +++ b/ecs/src/query.rs @@ -211,7 +211,7 @@ where matching_entity .components .iter() - .map(|component| &component.component), + .map(|component| &**component), )) } } |