From 55c6ebf2e90b8e6c57ce594eac27a65237f0e876 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Thu, 2 Mar 2023 13:39:56 +0100 Subject: [PATCH] fix(dtmm): Fix config path on Windows --- crates/dtmm/src/util/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/dtmm/src/util/config.rs b/crates/dtmm/src/util/config.rs index d2ae44c..86812b3 100644 --- a/crates/dtmm/src/util/config.rs +++ b/crates/dtmm/src/util/config.rs @@ -60,7 +60,7 @@ pub(crate) struct Config { pub mod_order: Vec, } -#[cfg(not(arget_os = "windows"))] +#[cfg(not(target_os = "windows"))] pub fn get_default_config_path() -> PathBuf { let config_dir = std::env::var("XDG_CONFIG_DIR").unwrap_or_else(|_| { let home = std::env::var("HOME").unwrap_or_else(|_| { @@ -79,7 +79,7 @@ pub fn get_default_config_path() -> PathBuf { PathBuf::from(config_dir).join("dtmm").join("dtmm.cfg") } -#[cfg(not(arget_os = "windows"))] +#[cfg(not(target_os = "windows"))] pub fn get_default_data_dir() -> PathBuf { let data_dir = std::env::var("XDG_DATA_DIR").unwrap_or_else(|_| { let home = std::env::var("HOME").unwrap_or_else(|_| {