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/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ecs/src/lib.rs') diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs index c2fc9c7..fbcc451 100644 --- a/ecs/src/lib.rs +++ b/ecs/src/lib.rs @@ -44,11 +44,12 @@ struct Entity } #[derive(Debug)] -struct EntityComponent +#[non_exhaustive] +pub struct EntityComponent { - id: TypeId, - component: Lock>, - drop_last: bool, + pub id: TypeId, + pub component: Lock>, + pub drop_last: bool, } #[derive(Debug, Default)] -- cgit v1.2.3-18-g5258