diff options
Diffstat (limited to 'engine-ecs/src/bundle.rs')
| -rw-r--r-- | engine-ecs/src/bundle.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine-ecs/src/bundle.rs b/engine-ecs/src/bundle.rs index 4c13599..b0c0b50 100644 --- a/engine-ecs/src/bundle.rs +++ b/engine-ecs/src/bundle.rs @@ -1,6 +1,6 @@ use seq_macro::seq; -use crate::component::{IntoParts as IntoComponentParts, Parts as ComponentParts}; +use crate::component::Parts as ComponentParts; pub trait Bundle: 'static { @@ -31,10 +31,10 @@ seq!(C in 0..17 { gen_tuple_impls!(C); }); -impl<T: IntoComponentParts + 'static> Bundle for T +impl<T: Into<ComponentParts> + 'static> Bundle for T { fn iter_component_parts(self) -> impl Iterator<Item = ComponentParts> { - [self.into_parts()].into_iter() + [self.into()].into_iter() } } |
