From 523d13eec4778bb0d5e25416f09f2e5f7fc27ca7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 4 Apr 2025 17:47:53 +0200 Subject: perf(ecs): always store query terms on stack --- ecs/src/query/term.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ecs/src/query/term.rs') 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 TermWithoutField for With where ComponentT: Component, { - fn apply_to_terms_builder(terms_builder: &mut TermsBuilder<'_>) + fn apply_to_terms_builder( + terms_builder: &mut TermsBuilder, + ) { terms_builder.with::(); } @@ -31,7 +33,9 @@ impl TermWithoutField for Without where ComponentT: Component, { - fn apply_to_terms_builder(terms_builder: &mut TermsBuilder<'_>) + fn apply_to_terms_builder( + terms_builder: &mut TermsBuilder, + ) { terms_builder.without::(); } -- cgit v1.2.3-18-g5258