summaryrefslogtreecommitdiff
path: root/ecs/src/query/term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/query/term.rs')
-rw-r--r--ecs/src/query/term.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/ecs/src/query/term.rs b/ecs/src/query/term.rs
index 7f24147..ce453f0 100644
--- a/ecs/src/query/term.rs
+++ b/ecs/src/query/term.rs
@@ -14,7 +14,9 @@ impl<ComponentT> TermWithoutField for With<ComponentT>
where
ComponentT: Component,
{
- fn apply_to_terms_builder(terms_builder: &mut TermsBuilder<'_>)
+ fn apply_to_terms_builder<const MAX_TERM_CNT: usize>(
+ terms_builder: &mut TermsBuilder<MAX_TERM_CNT>,
+ )
{
terms_builder.with::<ComponentT>();
}
@@ -31,7 +33,9 @@ impl<ComponentT> TermWithoutField for Without<ComponentT>
where
ComponentT: Component,
{
- fn apply_to_terms_builder(terms_builder: &mut TermsBuilder<'_>)
+ fn apply_to_terms_builder<const MAX_TERM_CNT: usize>(
+ terms_builder: &mut TermsBuilder<MAX_TERM_CNT>,
+ )
{
terms_builder.without::<ComponentT>();
}