aboutsummaryrefslogtreecommitdiff
path: root/src/modules/contact.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/contact.rs')
-rw-r--r--src/modules/contact.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/contact.rs b/src/modules/contact.rs
index 9999aa9..c9ce993 100644
--- a/src/modules/contact.rs
+++ b/src/modules/contact.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 ContactMap = HashMap<String, HashMap<String, String>>;
-static CONTACT_MAP: SyncLazy<ContactMap> = SyncLazy::new(|| {
+static CONTACT_MAP: Lazy<ContactMap> = Lazy::new(|| {
serde_json::from_str(include_str!("../../content/json/contacts.json"))
.unwrap()
});