From 49574bc5c70765232e3cbdac3f28d6a86586e3cb Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 22 Feb 2024 19:33:17 +0100 Subject: refactor(ecs): elide lifetimes of Sequence::from_components --- ecs/src/component.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ecs/src') 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; - fn from_components<'components>( - components: &'components mut [Box], - ) -> Self::MutRefs<'components>; + fn from_components(components: &mut [Box]) -> Self::MutRefs<'_>; } macro_rules! inner { @@ -82,9 +80,9 @@ macro_rules! inner { ] } - fn from_components<'components>( - components: &'components mut [Box], - ) -> Self::MutRefs<'components> + fn from_components( + components: &mut [Box], + ) -> Self::MutRefs<'_> { #( let mut comp_~I = None; -- cgit v1.2.3-18-g5258