From 47b135ce63e7a0c0f2ebfcf518dbb13e68b5eddc Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 18 Jul 2022 21:14:14 +0200 Subject: refactor: rename the castable_to macro to declare_interface --- syrette_macros/src/libs/intertrait_macros/args.rs | 36 ----------------------- 1 file changed, 36 deletions(-) delete mode 100644 syrette_macros/src/libs/intertrait_macros/args.rs (limited to 'syrette_macros/src/libs/intertrait_macros/args.rs') diff --git a/syrette_macros/src/libs/intertrait_macros/args.rs b/syrette_macros/src/libs/intertrait_macros/args.rs deleted file mode 100644 index a49567f..0000000 --- a/syrette_macros/src/libs/intertrait_macros/args.rs +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Originally from Intertrait by CodeChain - * - * https://github.com/CodeChain-io/intertrait - * https://crates.io/crates/intertrait/0.2.2 - * - * Licensed under either of - * - * Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) - * MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) - - * at your option. -*/ -use syn::parse::{Parse, ParseStream, Result}; -use syn::{Path, Token, Type}; - -pub struct Cast -{ - pub ty: Type, - pub target: Path, -} - -impl Parse for Cast -{ - fn parse(input: ParseStream) -> Result - { - let ty: Type = input.parse()?; - - input.parse::]>()?; - - Ok(Cast { - ty, - target: input.parse()?, - }) - } -} -- cgit v1.2.3-18-g5258