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