summaryrefslogtreecommitdiff
path: root/ecs/src/query.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-06 12:21:34 +0200
committerHampusM <hampus@hampusmat.com>2024-06-06 12:21:34 +0200
commit989bffa8ec39bf7421801129fb5b116c47ce8a35 (patch)
treef0f244049230e5be449a9e2a857fa3b72dddc190 /ecs/src/query.rs
parentc962b8721aaaaf001e9599fac17596bef71e433d (diff)
chore(ecs): remove support for specifying component to be dropped last
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r--ecs/src/query.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs
index 73792b3..ffab105 100644
--- a/ecs/src/query.rs
+++ b/ecs/src/query.rs
@@ -208,10 +208,7 @@ where
self.current_entity_index = matching_entity_index + 1;
Some(Comps::from_components(
- matching_entity
- .components
- .iter()
- .map(|component| &**component),
+ matching_entity.components.iter().map(|component| component),
))
}
}