summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ecs/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs
index 3c59554..a9ef2a4 100644
--- a/ecs/src/lib.rs
+++ b/ecs/src/lib.rs
@@ -108,12 +108,16 @@ impl<Event> Default for World<Event>
#[derive(Debug)]
pub struct Query<'world, Comps>
+where
+ Comps: ComponentSequence,
{
component_storage: &'world mut ComponentStorage,
comps_pd: PhantomData<Comps>,
}
impl<'world, Comps> Query<'world, Comps>
+where
+ Comps: ComponentSequence,
{
fn new(component_storage: &'world mut ComponentStorage) -> Self
{