aboutsummaryrefslogtreecommitdiff
path: root/src/modules/stocks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/stocks.rs')
-rw-r--r--src/modules/stocks.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/stocks.rs b/src/modules/stocks.rs
index afa1c5d..f3519f1 100644
--- a/src/modules/stocks.rs
+++ b/src/modules/stocks.rs
@@ -16,12 +16,13 @@
// Copyright (C) 2022-2022 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
-use once_cell::sync::Lazy;
+use std::sync::LazyLock;
+
use serde::Deserialize;
use crate::{response::success, route::track_mount};
-static REFERRALS: Lazy<Vec<Referral>> = Lazy::new(|| {
+static REFERRALS: LazyLock<Vec<Referral>> = LazyLock::new(|| {
serde_json::from_str(include_str!(
"../../content/json/stock_market_referrals.json"
))