From ad2877956935375d74d0a0255dcf207c1673801c Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 4 Apr 2025 11:41:40 +0200 Subject: 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 --- ecs-macros/src/lib.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'ecs-macros/src/lib.rs') 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 -- cgit v1.2.3-18-g5258