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/config/constants.rs | |
| parent | b747ca8af52129876b577a4f20f7105a05c6b002 (diff) | |
use unsafe blocks instead of mutexes
Diffstat (limited to 'src/config/constants.rs')
| -rw-r--r-- | src/config/constants.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/config/constants.rs b/src/config/constants.rs deleted file mode 100644 index 5a8283a..0000000 --- a/src/config/constants.rs +++ /dev/null @@ -1,23 +0,0 @@ -use lazy_static::lazy_static; - -lazy_static! { - pub static ref USER_CONFIG_DIR: String = { - match dirs::config_local_dir() { - Some(mut d) => { - d.push("neosheet"); - d.as_path().to_str().unwrap_or("").to_string() - } - None => String::new(), - } - }; - pub static ref USER_RC_PATH: String = { - match dirs::config_local_dir() { - Some(mut d) => { - d.push("neosheet"); - d.push("init.lua"); - d.as_path().to_str().unwrap_or("").to_string() - } - None => String::new(), - } - }; -} |