aboutsummaryrefslogtreecommitdiff
path: root/src/modules/remarks.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/remarks.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/remarks.rs')
-rw-r--r--src/modules/remarks.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/remarks.rs b/src/modules/remarks.rs
index 29ad684..0b5fc26 100644
--- a/src/modules/remarks.rs
+++ b/src/modules/remarks.rs
@@ -37,8 +37,8 @@ pub fn module(router: &mut windmark::Router) {
"Fuwn's thoughts which are too short to be their own blog; but just long \
enough to be a remark.",
|context| {
- crate::success!(
- format!(
+ crate::response::success(
+ &format!(
"# Remarks\n\nFuwn's thoughts which are too short to be their own \
blog; but just long enough to be a remark.\n\n{}",
REMARKS
@@ -57,7 +57,7 @@ pub fn module(router: &mut windmark::Router) {
.collect::<Vec<String>>()
.join("\n")
),
- context
+ &context
)
},
);