aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-03-31 16:42:11 -0700
committerFuwn <[email protected]>2023-03-31 16:42:11 -0700
commit0a568ba1d65130b1f046f95975c9c28588847b95 (patch)
tree64bc6402c0ce829f39f6e87b0deb9f9c620fd6bf /src/macros.rs
parentdeps(windmark): bump 0.2.3 -> 0.2.4 (diff)
downloadlocus-0a568ba1d65130b1f046f95975c9c28588847b95.tar.xz
locus-0a568ba1d65130b1f046f95975c9c28588847b95.zip
refactor(src): use response macros
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 32703e9..0447b01 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -84,12 +84,10 @@ macro_rules! mount_file {
($router).mount(
$at,
- Box::new(|_| {
- windmark::Response::binary_success_auto(include_bytes!(concat!(
- "../../content/meta/",
- $file
- )))
- }),
+ ::windmark::binary_success_auto!(include_bytes!(concat!(
+ "../../content/meta/",
+ $file
+ ))),
);
};
}