Skip to content

Commit

Permalink
fix cfg macro pls!
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed May 11, 2022
1 parent 99b7b8c commit 7e9d423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ impl Config {
#[cfg(windows)] {
data_dir = BaseDirs::new().unwrap().data_local_dir().to_path_buf().join("Geode");
};
#[cfg(macos)] {
#[cfg(target_os = "macos")] {
data_dir = PathBuf::from("/Users/Shared/Geode");
};
#[cfg(not(any(windows, macos)))] {
#[cfg(not(any(windows, target_os = "macos")))] {
use std::compile_error;
compile_error!("implement config.json directory");
};
Expand Down

0 comments on commit 7e9d423

Please sign in to comment.