aboutsummaryrefslogtreecommitdiff
path: root/src/modules/sitemap.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-16 21:15:12 -0700
committerFuwn <[email protected]>2023-04-16 21:15:12 -0700
commitc7adc5f014d4635c8468a863a124ddce4a9fe0e7 (patch)
tree2f5a8aafdbf3fa0712d01ecb95ccd10eb691fd10 /src/modules/sitemap.rs
parentfix(amenadiel): modules macro unwrap on none (diff)
downloadlocus-c7adc5f014d4635c8468a863a124ddce4a9fe0e7.tar.xz
locus-c7adc5f014d4635c8468a863a124ddce4a9fe0e7.zip
refactor(response): rewrite unnecessary macro to function
Diffstat (limited to 'src/modules/sitemap.rs')
-rw-r--r--src/modules/sitemap.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/sitemap.rs b/src/modules/sitemap.rs
index 10ae569..19c6b82 100644
--- a/src/modules/sitemap.rs
+++ b/src/modules/sitemap.rs
@@ -22,8 +22,8 @@ pub fn module(router: &mut windmark::Router) {
"/sitemap",
"A map of all publicly available routes on this Gemini capsule",
|context| {
- crate::success!(
- format!(
+ crate::response::success(
+ &format!(
"# Sitemap\n\nA map of all publicly available routes on this Gemini \
capsule\n\n{}",
(*crate::route::ROUTES.lock().unwrap())
@@ -32,7 +32,7 @@ pub fn module(router: &mut windmark::Router) {
.collect::<Vec<_>>()
.join("\n")
),
- context
+ &context
)
},
);