Skip to content

Commit 7e9d423

Browse files
committed
fix cfg macro pls!
1 parent 99b7b8c commit 7e9d423

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ impl Config {
3535
#[cfg(windows)] {
3636
data_dir = BaseDirs::new().unwrap().data_local_dir().to_path_buf().join("Geode");
3737
};
38-
#[cfg(macos)] {
38+
#[cfg(target_os = "macos")] {
3939
data_dir = PathBuf::from("/Users/Shared/Geode");
4040
};
41-
#[cfg(not(any(windows, macos)))] {
41+
#[cfg(not(any(windows, target_os = "macos")))] {
4242
use std::compile_error;
4343
compile_error!("implement config.json directory");
4444
};

0 commit comments

Comments
 (0)