diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-18 21:14:14 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-18 21:14:14 +0200 |
commit | 47b135ce63e7a0c0f2ebfcf518dbb13e68b5eddc (patch) | |
tree | 10f49fae25c774aefc57c82aa260086a2e01960c /syrette_macros/src/libs/intertrait_macros | |
parent | 8976c166cff4c98c43cdc409275f548eb27ecb13 (diff) |
refactor: rename the castable_to macro to declare_interface
Diffstat (limited to 'syrette_macros/src/libs/intertrait_macros')
-rw-r--r-- | syrette_macros/src/libs/intertrait_macros/args.rs | 36 | ||||
-rw-r--r-- | syrette_macros/src/libs/intertrait_macros/mod.rs | 1 |
2 files changed, 0 insertions, 37 deletions
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<Self> - { - let ty: Type = input.parse()?; - - input.parse::<Token![=>]>()?; - - Ok(Cast { - ty, - target: input.parse()?, - }) - } -} diff --git a/syrette_macros/src/libs/intertrait_macros/mod.rs b/syrette_macros/src/libs/intertrait_macros/mod.rs index 7904663..da9775a 100644 --- a/syrette_macros/src/libs/intertrait_macros/mod.rs +++ b/syrette_macros/src/libs/intertrait_macros/mod.rs @@ -11,5 +11,4 @@ * at your option. */ -pub mod args; pub mod gen_caster; |