diff options
Diffstat (limited to 'src/modules/stocks.rs')
| -rw-r--r-- | src/modules/stocks.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/stocks.rs b/src/modules/stocks.rs index 832a1ad..108e792 100644 --- a/src/modules/stocks.rs +++ b/src/modules/stocks.rs @@ -111,7 +111,7 @@ pub fn module(router: &mut windmark::Router) { "/stocks/referrals", "Want to start investing in the stock market? Support me by using one of \ my referral links!", - Box::new(|context| { + |context| { success!( format!( "# Referrals\n\n=> /stocks Dashboard\n=> /cryptocurrency \ @@ -128,14 +128,14 @@ pub fn module(router: &mut windmark::Router) { ), context ) - }), + }, ); track_mount( router, "/stocks", "Explore and search the stock market using Gemini!", - Box::new(|context| { + |context| { success!( format!( "# The Stock Market\n\n=> /stocks/search Symbol Search\n=> /stocks/referrals Referrals\n=> /cryptocurrency Cryptocurrency Dashboard\n=> /stocks/telegram Telegram Groups\n\n## Popular \ @@ -145,14 +145,14 @@ pub fn module(router: &mut windmark::Router) { ), context ) - }), + }, ); track_mount( router, "/stocks/search", "Search for a specific symbol", - Box::new(|context| { + |context| { let mut symbol = context.url.query().unwrap_or("Symbol Search"); if symbol.is_empty() { @@ -194,6 +194,6 @@ pub fn module(router: &mut windmark::Router) { ), context ) - }), + }, ); } |