diff options
| author | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
| commit | 7f0c497b103479caa9f63cc0e50101c90a60b7ef (patch) | |
| tree | e448da50c46c429f6ca672aa070577766fffc9bc /rossweisse/src/implementations/router/fields.rs | |
| parent | docs(rossweisse): revert to implementation (diff) | |
| download | windmark-7f0c497b103479caa9f63cc0e50101c90a60b7ef.tar.xz windmark-7f0c497b103479caa9f63cc0e50101c90a60b7ef.zip | |
feat(windmark): prelude feature flag
Diffstat (limited to 'rossweisse/src/implementations/router/fields.rs')
| -rw-r--r-- | rossweisse/src/implementations/router/fields.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rossweisse/src/implementations/router/fields.rs b/rossweisse/src/implementations/router/fields.rs index a2d0bdf..6c3941a 100644 --- a/rossweisse/src/implementations/router/fields.rs +++ b/rossweisse/src/implementations/router/fields.rs @@ -58,7 +58,7 @@ pub fn fields(arguments: TokenStream, item: syn::ItemStruct) -> TokenStream { fn _new() -> Self { Self { #(#new_method_fields)* - router: ::windmark::Router::new(), + router: ::windmark::router::Router::new(), } } @@ -66,7 +66,7 @@ pub fn fields(arguments: TokenStream, item: syn::ItemStruct) -> TokenStream { self.router.run().await } - pub fn router(&mut self) -> &mut ::windmark::Router { + pub fn router(&mut self) -> &mut ::windmark::router::Router { &mut self.router } }; @@ -74,7 +74,7 @@ pub fn fields(arguments: TokenStream, item: syn::ItemStruct) -> TokenStream { let output = quote! { struct #router_identifier { #output_fields - router: ::windmark::Router, + router: ::windmark::router::Router, } impl #router_identifier { |