aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-03-30 20:20:27 -0700
committerFuwn <[email protected]>2023-03-30 20:20:27 -0700
commit9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8 (patch)
treea9f566fb606de56334f4be9390d48ad8912bd5e3 /src/macros.rs
parentfeat(translation): add translation header (diff)
downloadlocus-9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8.tar.xz
locus-9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8.zip
deps(windmark): bump 0.2.1 -> 0.2.2
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 7a39dbd..32703e9 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -37,7 +37,7 @@ macro_rules! success {
($body:expr, $context:ident) => {{
$crate::route::cache(&$context, &$body);
- windmark::Response::Success(
+ windmark::Response::success(
$crate::macros::Main {
body: &$body,
hits: &$crate::route::hits_from($context.url.path()),
@@ -85,7 +85,7 @@ macro_rules! mount_file {
($router).mount(
$at,
Box::new(|_| {
- windmark::Response::SuccessFileAuto(include_bytes!(concat!(
+ windmark::Response::binary_success_auto(include_bytes!(concat!(
"../../content/meta/",
$file
)))