summaryrefslogtreecommitdiff
path: root/ecs/src/component.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r--ecs/src/component.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/ecs/src/component.rs b/ecs/src/component.rs
index 8119e93..0c6168f 100644
--- a/ecs/src/component.rs
+++ b/ecs/src/component.rs
@@ -58,9 +58,7 @@ pub trait Sequence
fn type_ids() -> Vec<TypeId>;
- fn from_components<'components>(
- components: &'components mut [Box<dyn Component>],
- ) -> Self::MutRefs<'components>;
+ fn from_components(components: &mut [Box<dyn Component>]) -> Self::MutRefs<'_>;
}
macro_rules! inner {
@@ -82,9 +80,9 @@ macro_rules! inner {
]
}
- fn from_components<'components>(
- components: &'components mut [Box<dyn Component>],
- ) -> Self::MutRefs<'components>
+ fn from_components(
+ components: &mut [Box<dyn Component>],
+ ) -> Self::MutRefs<'_>
{
#(
let mut comp_~I = None;