clippy stuff

This commit is contained in:
2025-05-04 18:21:55 +01:00
parent 38c6402a12
commit b325ebb03c
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
use std::{env, path::PathBuf, sync::LazyLock};
pub static APP_STORAGE_PATH: LazyLock<PathBuf> =
LazyLock::new(|| PathBuf::from(env::var("LOCALAPPDATA").unwrap()).join("GTA Tools"));
pub static APP_STORAGE_PATH: LazyLock<PathBuf> = LazyLock::new(|| {
PathBuf::from(env::var("LOCALAPPDATA").unwrap_or_else(|_| String::from("."))).join("GTA Tools")
});
pub mod game {
pub const EXE_ENHANCED: &str = "GTA5_Enhanced.exe";