diff options
| author | HampusM <hampus@hampusmat.com> | 2026-12-01 17:42:12 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-12-01 17:42:12 +0100 |
| commit | b2a130a6e30b82a7e0f80347f916265a467a4238 (patch) | |
| tree | 5685399d1cf7a28df3f91e83a2d3d2eaf2eaa20b /engine-ecs/src/bundle.rs | |
| parent | 8985ff5080c34cf4b07b814ed7a757311a5a332f (diff) | |
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() } } |
