diff options
author | HampusM <hampus@hampusmat.com> | 2024-12-10 17:25:25 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-12-10 17:25:25 +0100 |
commit | c6de2c7ab9c48223ab307fe0039fae7ab2613e16 (patch) | |
tree | ddbe1daf1521ea30ded662f2e46e62f4afb9a592 /ecs/src/system.rs | |
parent | e26e548f5730e401797149d5d3254437e68e660e (diff) |
refactor(ecs): merge a couple of tuple traits together
Diffstat (limited to 'ecs/src/system.rs')
-rw-r--r-- | ecs/src/system.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecs/src/system.rs b/ecs/src/system.rs index 3ba693b..e273428 100644 --- a/ecs/src/system.rs +++ b/ecs/src/system.rs @@ -14,7 +14,7 @@ use crate::component::{ FromOptionalMut as FromOptionalMutComponent, }; use crate::lock::{ReadGuard, WriteGuard}; -use crate::tuple::{ReduceElement as TupleReduceElement, With as TupleWith}; +use crate::tuple::{ReduceElement as TupleReduceElement, Tuple}; use crate::World; pub mod stateful; @@ -180,9 +180,9 @@ pub struct ParamWithInputFilter; impl<InputT: Input, Accumulator> TupleReduceElement<Accumulator, ParamWithInputFilter> for InputT where - Accumulator: TupleWith<Self>, + Accumulator: Tuple, { - type Return = Accumulator::With; + type Return = Accumulator::WithElementAtEnd<Self>; } impl<Accumulator> TupleReduceElement<Accumulator, ParamWithInputFilter> for () |