From b8417d20765755cfa2cecacb11c77e3abbafd546 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 24 May 2024 19:00:38 +0200 Subject: fix(ecs): prevent unnecessary locking in Sequence::from_components --- ecs/src/query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ecs/src/query.rs') 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), )) } } -- cgit v1.2.3-18-g5258