diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-10 19:06:46 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-10 19:06:46 +0200 |
| commit | 63cfcbe7a7745b276de58ec92e0141b958c44feb (patch) | |
| tree | 990e33a83756e27187033579ee2f85d5c79169d5 /src/lua/runtime.rs | |
| parent | b747ca8af52129876b577a4f20f7105a05c6b002 (diff) | |
use unsafe blocks instead of mutexes
Diffstat (limited to 'src/lua/runtime.rs')
| -rw-r--r-- | src/lua/runtime.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/runtime.rs b/src/lua/runtime.rs index 6a0a230..71bf21a 100644 --- a/src/lua/runtime.rs +++ b/src/lua/runtime.rs @@ -50,10 +50,10 @@ pub fn package(lua: &Lua) -> Result<()> { "path", format!( "{}/?.lua;{}/?/init.lua;{}/lib/?.lua;{}/lib/?/init.lua;{};./?.lua", - config::constants::USER_CONFIG_DIR.as_str(), - config::constants::USER_CONFIG_DIR.as_str(), - config::constants::USER_CONFIG_DIR.as_str(), - config::constants::USER_CONFIG_DIR.as_str(), + config::env::USER_CONFIG_DIR.as_str(), + config::env::USER_CONFIG_DIR.as_str(), + config::env::USER_CONFIG_DIR.as_str(), + config::env::USER_CONFIG_DIR.as_str(), path.split(';') .filter(|s| s.starts_with('/')) .collect::<Vec<&str>>() |