summaryrefslogtreecommitdiff
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-08-02 00:36:10 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-08-02 00:36:10 +0200
commitfe0938b1de0c46fc2afcaa3dcd6a0f4ec870d21a (patch)
tree8db7509894842395cfb309f00c41b7f4d173888c /src/config/mod.rs
parent1e1eb95926f556e666bc20355327abd24d264858 (diff)
add state which is shared with the lua environment
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index c5131a6..b01be62 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -4,9 +4,8 @@ use mlua::{UserData, UserDataFields};
use self::theme::Theme;
-pub mod theme;
pub mod constants;
-pub mod evalsto;
+pub mod theme;
#[derive(Debug, Default)]
pub struct GlobalConfig {
@@ -17,7 +16,7 @@ static GLOBAL_CONFIG: RwLock<GlobalConfig> = RwLock::new(GlobalConfig::new());
const DUMMY_CONFIG: GlobalConfig = GlobalConfig::new();
impl GlobalConfig {
- pub const fn new() -> Self {
+ const fn new() -> Self {
Self {
theme: Theme::new(),
}