diff options
| author | Fuwn <[email protected]> | 2023-04-16 21:15:12 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-16 21:15:12 -0700 |
| commit | c7adc5f014d4635c8468a863a124ddce4a9fe0e7 (patch) | |
| tree | 2f5a8aafdbf3fa0712d01ecb95ccd10eb691fd10 /src/modules/cryptocurrency.rs | |
| parent | fix(amenadiel): modules macro unwrap on none (diff) | |
| download | locus-c7adc5f014d4635c8468a863a124ddce4a9fe0e7.tar.xz locus-c7adc5f014d4635c8468a863a124ddce4a9fe0e7.zip | |
refactor(response): rewrite unnecessary macro to function
Diffstat (limited to 'src/modules/cryptocurrency.rs')
| -rw-r--r-- | src/modules/cryptocurrency.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/cryptocurrency.rs b/src/modules/cryptocurrency.rs index 752c251..87f6ca0 100644 --- a/src/modules/cryptocurrency.rs +++ b/src/modules/cryptocurrency.rs @@ -19,7 +19,7 @@ use once_cell::sync::Lazy; use serde::Deserialize; -use crate::{route::track_mount, success}; +use crate::{route::track_mount, response::success}; static REFERRALS: Lazy<Vec<Referral>> = Lazy::new(|| { serde_json::from_str(include_str!( @@ -42,8 +42,8 @@ pub fn module(router: &mut windmark::Router) { "Want to start investing in cryptocurrency? Support me by using one of my \ referral links!", |context| { - success!( - format!( + success( + &format!( "# Referrals\n\n=> /cryptocurrency Home\n=> /stocks Stock Market \ Dashboard\n\nWant to start investing? Support me by using one of \ my referral links!\n\n{}", @@ -55,7 +55,7 @@ pub fn module(router: &mut windmark::Router) { .collect::<Vec<String>>() .join("\n") ), - context + &context ) }, ); @@ -65,12 +65,12 @@ pub fn module(router: &mut windmark::Router) { "/cryptocurrency", "Relevant information regarding cryptocurrency investing", |context| { - success!( - format!( + success( + &format!( "# Cryptocurrency\n\n=> /stocks Stock Market Dashboard\n=> \ /cryptocurrency/referrals Referrals", ), - context + &context ) }, ); |