summaryrefslogtreecommitdiff
path: root/ecs/src/query.rs
diff options
context:
space:
mode:
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),
))
}
}