From c7adc5f014d4635c8468a863a124ddce4a9fe0e7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 16 Apr 2023 21:15:12 -0700 Subject: refactor(response): rewrite unnecessary macro to function --- src/modules/remarks.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/remarks.rs') 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::>() .join("\n") ), - context + &context ) }, ); -- cgit v1.2.3