summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-02-22 19:33:17 +0100
committerHampusM <hampus@hampusmat.com>2024-02-22 19:33:17 +0100
commit49574bc5c70765232e3cbdac3f28d6a86586e3cb (patch)
tree5f8da3e747f279e5165f6e47cb30e11bb1d07bf3
parent9f65dba3afd4e8f20881914fc86fa997cb64a13d (diff)
refactor(ecs): elide lifetimes of Sequence::from_components
-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;