mirror of
https://github.com/Blair-SGA-Dev-Team/blazerapp.git
synced 2026-07-16 06:50:22 -04:00
ok fixed the pepepga problem
This commit is contained in:
@@ -309,3 +309,19 @@ fn api_route_inner(item: TokenStream) -> TokenStream {
|
||||
pub fn api_route(item: proc_macro::TokenStream) -> proc_macro::TokenStream {
|
||||
api_route_inner(TokenStream::from(item)).into()
|
||||
}
|
||||
|
||||
#[test]
|
||||
pub fn test() {
|
||||
let val = quote! {
|
||||
events {
|
||||
title: (Text, String, String),
|
||||
location: (Text, String, String),
|
||||
text: (Text, String, String),
|
||||
event_date: (Text, NaiveDate, DateForm),
|
||||
}
|
||||
};
|
||||
|
||||
let macr = api_route_inner(val);
|
||||
|
||||
println!("{}", macr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user