aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-24 19:24:28 -0700
committerFuwn <[email protected]>2024-06-24 19:24:28 -0700
commit9dbb5b19e454d315ee8bcbcfdee7c89818c8f523 (patch)
tree36b1c8c19a4f8bc89f2ad8272ebd70d83965130b
parentfeat(footer): add finger server (diff)
downloadlocus-9dbb5b19e454d315ee8bcbcfdee7c89818c8f523.tar.xz
locus-9dbb5b19e454d315ee8bcbcfdee7c89818c8f523.zip
chore(modules): add back removed comments
-rw-r--r--src/modules/cryptocurrency.rs12
-rw-r--r--src/modules/stocks.rs14
2 files changed, 25 insertions, 1 deletions
diff --git a/src/modules/cryptocurrency.rs b/src/modules/cryptocurrency.rs
index e6ea9bb..31e7a12 100644
--- a/src/modules/cryptocurrency.rs
+++ b/src/modules/cryptocurrency.rs
@@ -1,6 +1,18 @@
use crate::{response::success, route::track_mount};
+// static REFERRALS: LazyLock<Vec<Referral>> = LazyLock::new(|| {
+// serde_json::from_str(include_str!(
+// "../../content/json/cryptocurrency_referrals.json"
+// ))
+// .unwrap()
+// });
+// #[derive(Deserialize)]
+// struct Referral {
+// name: String,
+// description: String,
+// url: String,
+// }
pub fn module(router: &mut windmark::router::Router) {
// track_mount(
diff --git a/src/modules/stocks.rs b/src/modules/stocks.rs
index 0de8a58..8a4becf 100644
--- a/src/modules/stocks.rs
+++ b/src/modules/stocks.rs
@@ -3,7 +3,19 @@ use {
serde::Deserialize,
};
-
+// static REFERRALS: LazyLock<Vec<Referral>> = LazyLock::new(|| {
+// serde_json::from_str(include_str!(
+// "../../content/json/stock_market_referrals.json"
+// ))
+// .unwrap()
+// });
+
+// #[derive(Deserialize)]
+// struct Referral {
+// name: String,
+// description: String,
+// url: String,
+// }
#[derive(Deserialize, Debug)]
struct Quote {