get the dioxus CLI compiling

This commit is contained in:
Evan Almloff committed 2024-02-16 14:55:44 -06:00
1 parent 30af559275
commit e7d8a25d17
8 files changed
+40 -42

No files matched your search

+11 -11
View File
@@ -70,15 +70,15 @@ use syn::__private::ToTokens;
/// ```
#[proc_macro_attribute]
pub fn server(args: proc_macro::TokenStream, s: TokenStream) -> TokenStream {
match server_macro_impl(
args.into(),
s.into(),
Some(syn::parse_quote!(server_fn)),
"/api",
None,
None,
) {
Err(e) => e.to_compile_error().into(),
Ok(s) => s.to_token_stream().into(),
}
match server_macro_impl(
args.into(),
s.into(),
Some(syn::parse_quote!(server_fn)),
"/api",
None,
None,
) {
Err(e) => e.to_compile_error().into(),
Ok(s) => s.to_token_stream().into(),
}
}