diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-19 11:15:09 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-19 11:15:09 +0200 |
commit | 58e50e3d9073584064e13edf489fc008b0388149 (patch) | |
tree | 49c7a77592d0a1ef670bb6723f28735175eefca9 /syrette_macros/src | |
parent | 46196985639833eae6cceea48751efaeabf5600c (diff) |
refactor: remove unused intertrait code
Diffstat (limited to 'syrette_macros/src')
-rw-r--r-- | syrette_macros/src/libs/intertrait_macros/gen_caster.rs | 2 |
1 files changed, 0 insertions, 2 deletions
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::<dyn #trait_>::new( - |from| from.downcast_ref::<#ty>().unwrap(), - |from| from.downcast_mut::<#ty>().unwrap(), |from| from.downcast::<#ty>().unwrap(), |from| from.downcast::<#ty>().unwrap(), ) |