diff options
| author | Fuwn <[email protected]> | 2023-03-31 16:42:11 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-03-31 16:42:11 -0700 |
| commit | 0a568ba1d65130b1f046f95975c9c28588847b95 (patch) | |
| tree | 64bc6402c0ce829f39f6e87b0deb9f9c620fd6bf /src/macros.rs | |
| parent | deps(windmark): bump 0.2.3 -> 0.2.4 (diff) | |
| download | locus-0a568ba1d65130b1f046f95975c9c28588847b95.tar.xz locus-0a568ba1d65130b1f046f95975c9c28588847b95.zip | |
refactor(src): use response macros
Diffstat (limited to 'src/macros.rs')
| -rw-r--r-- | src/macros.rs | 10 |
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 + ))), ); }; } |