From 91a92870dc289d51b6ccc38f5b8b5470fd089d21 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 2 Aug 2022 12:00:49 -0600 Subject: [PATCH] use the correct structure this time --- src/common/leveltable.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/leveltable.rs b/src/common/leveltable.rs index 08a9222..9fb1465 100644 --- a/src/common/leveltable.rs +++ b/src/common/leveltable.rs @@ -1,9 +1,9 @@ use std::fs::File; use serde_json::Value; use crate::entity::character::CharacterClass; -use std::cell::LazyCell; +use std::sync::LazyLock; -pub const LEVEL_TABLE: LazyCell = LazyCell::new(|| CharacterLevelTable::default()); +pub static LEVEL_TABLE: LazyLock = LazyLock::new(CharacterLevelTable::default); #[derive(Default, Copy, Clone, Debug, PartialEq, Eq)] pub struct CharacterStats {