diff options
author | HampusM <hampus@hampusmat.com> | 2025-04-04 17:47:53 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-04-04 17:47:53 +0200 |
commit | 523d13eec4778bb0d5e25416f09f2e5f7fc27ca7 (patch) | |
tree | 5b7f6d336c0a0ef171b058e5e28f655c92b9900a /ecs/src/query/term.rs | |
parent | ad2877956935375d74d0a0255dcf207c1673801c (diff) |
Diffstat (limited to 'ecs/src/query/term.rs')
-rw-r--r-- | ecs/src/query/term.rs | 8 |
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>(); } |