From 58e50e3d9073584064e13edf489fc008b0388149 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 19 Jul 2022 11:15:09 +0200 Subject: refactor: remove unused intertrait code --- syrette_macros/src/libs/intertrait_macros/gen_caster.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'syrette_macros/src/libs/intertrait_macros') diff --git a/syrette_macros/src/libs/intertrait_macros/gen_caster.rs b/syrette_macros/src/libs/intertrait_macros/gen_caster.rs index a0e63b5..213a75e 100644 --- a/syrette_macros/src/libs/intertrait_macros/gen_caster.rs +++ b/syrette_macros/src/libs/intertrait_macros/gen_caster.rs @@ -28,8 +28,6 @@ pub fn generate_caster(ty: &impl ToTokens, trait_: &impl ToTokens) -> TokenStrea let new_caster = quote! { syrette::libs::intertrait::Caster::::new( - |from| from.downcast_ref::<#ty>().unwrap(), - |from| from.downcast_mut::<#ty>().unwrap(), |from| from.downcast::<#ty>().unwrap(), |from| from.downcast::<#ty>().unwrap(), ) -- cgit v1.2.3-18-g5258