diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-20 14:29:45 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-20 14:29:45 +0200 |
commit | 2d1a6b2d432408d74eb57e0bda3f7434617e1070 (patch) | |
tree | 7e21f8126edfdfd9c40b4b51ba5626c6440442d9 /syrette_macros/src/declare_interface_args.rs | |
parent | 7863d9859a5cbce99c3769e4fdb40283115d358d (diff) |
refactor: reorganize folder hierarchy
Diffstat (limited to 'syrette_macros/src/declare_interface_args.rs')
-rw-r--r-- | syrette_macros/src/declare_interface_args.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/syrette_macros/src/declare_interface_args.rs b/syrette_macros/src/declare_interface_args.rs deleted file mode 100644 index b54f458..0000000 --- a/syrette_macros/src/declare_interface_args.rs +++ /dev/null @@ -1,23 +0,0 @@ -use syn::parse::{Parse, ParseStream, Result}; -use syn::{Path, Token, Type}; - -pub struct DeclareInterfaceArgs -{ - pub implementation: Type, - pub interface: Path, -} - -impl Parse for DeclareInterfaceArgs -{ - fn parse(input: ParseStream) -> Result<Self> - { - let implementation: Type = input.parse()?; - - input.parse::<Token![->]>()?; - - Ok(Self { - implementation, - interface: input.parse()?, - }) - } -} |