diff options
author | HampusM <hampus@hampusmat.com> | 2025-04-04 11:41:40 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-04-04 11:41:54 +0200 |
commit | ad2877956935375d74d0a0255dcf207c1673801c (patch) | |
tree | 075611a7293b1439142e9aa1d8f77207c3a64553 /ecs-macros/src | |
parent | efa8f9af3a3c16c0ecbfefd479d69fc431ede834 (diff) |
refactor(ecs): remove Component trait fns as_any & as_any_mut
Instead of these functions, it makes use of the trait object upcasting added in Rust 1.86
Diffstat (limited to 'ecs-macros/src')
-rw-r--r-- | ecs-macros/src/lib.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ecs-macros/src/lib.rs b/ecs-macros/src/lib.rs index 5af10b9..862b0b1 100644 --- a/ecs-macros/src/lib.rs +++ b/ecs-macros/src/lib.rs @@ -150,16 +150,6 @@ pub fn component_derive(input: TokenStream) -> TokenStream } } } - - fn as_any_mut(&mut self) -> &mut dyn Any - { - self - } - - fn as_any(&self) -> &dyn Any - { - self - } } impl #impl_generics SystemInput for #item_ident #type_generics |