aboutsummaryrefslogtreecommitdiff
path: root/src/modules/interests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/interests.rs')
-rw-r--r--src/modules/interests.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/interests.rs b/src/modules/interests.rs
index 2cd8328..4db805f 100644
--- a/src/modules/interests.rs
+++ b/src/modules/interests.rs
@@ -16,11 +16,13 @@
// Copyright (C) 2022-2022 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
-use std::{collections::HashMap, lazy::SyncLazy};
+use std::collections::HashMap;
+
+use once_cell::sync::Lazy;
type InterestMap = HashMap<String, HashMap<String, String>>;
-static INTEREST_MAP: SyncLazy<InterestMap> = SyncLazy::new(|| {
+static INTEREST_MAP: Lazy<InterestMap> = Lazy::new(|| {
serde_json::from_str(include_str!("../../content/json/interests.json"))
.unwrap()
});