From 989bffa8ec39bf7421801129fb5b116c47ce8a35 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 6 Jun 2024 12:21:34 +0200 Subject: chore(ecs): remove support for specifying component to be dropped last --- ecs/src/query.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ecs/src/query.rs') 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), )) } } -- cgit v1.2.3-18-g5258