diff options
| author | Fuwn <[email protected]> | 2023-04-03 03:05:27 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-03 03:05:27 +0000 |
| commit | 3026e341f871ffdaa7b6a69703ca63eef2b67fd7 (patch) | |
| tree | ecdaf57aa6e39cdfc56659813d6b65335f6f512e /src/response | |
| parent | refactor(handler): move traits (diff) | |
| download | windmark-3026e341f871ffdaa7b6a69703ca63eef2b67fd7.tar.xz windmark-3026e341f871ffdaa7b6a69703ca63eef2b67fd7.zip | |
refactor(returnable): seperate contexts
Diffstat (limited to 'src/response')
| -rw-r--r-- | src/response/macros.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/response/macros.rs b/src/response/macros.rs index 54e6a8b..339da07 100644 --- a/src/response/macros.rs +++ b/src/response/macros.rs @@ -23,10 +23,10 @@ macro_rules! response { #[macro_export] macro_rules! $name { ($body:expr /* $(,)? */) => { - |_: ::windmark::returnable::RouteContext<'_>| ::windmark::Response::$name($body) + |_: ::windmark::context::RouteContext<'_>| ::windmark::Response::$name($body) }; ($context:ident, $body:expr /* $(,)? */) => { - |$context: ::windmark::returnable::RouteContext<'_>| ::windmark::Response::$name($body) + |$context: ::windmark::context::RouteContext<'_>| ::windmark::Response::$name($body) }; } )* @@ -57,7 +57,7 @@ response!(certificate_not_valid); #[macro_export] macro_rules! binary_success { ($body:expr, $mime:expr) => { - |_: ::windmark::returnable::RouteContext<'_>| { + |_: ::windmark::context::RouteContext<'_>| { ::windmark::Response::binary_success($body, $mime) } }; @@ -68,7 +68,7 @@ macro_rules! binary_success { feature to be enabled" ); - |_: ::windmark::returnable::RouteContext<'_>| { + |_: ::windmark::context::RouteContext<'_>| { #[cfg(feature = "auto-deduce-mime")] return ::windmark::Response::binary_success_auto($body); @@ -78,7 +78,7 @@ macro_rules! binary_success { } }}; ($context:ident, $body:expr, $mime:expr) => { - |$context: ::windmark::returnable::RouteContext<'_>| { + |$context: ::windmark::context::RouteContext<'_>| { ::windmark::Response::binary_success($body, $mime) } }; @@ -89,7 +89,7 @@ macro_rules! binary_success { feature to be enabled" ); - |$context: ::windmark::returnable::RouteContext<'_>| { + |$context: ::windmark::context::RouteContext<'_>| { #[cfg(feature = "auto-deduce-mime")] return ::windmark::Response::binary_success_auto($body); |