Skip to content

Commit

Permalink
change config path
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxfight committed Apr 30, 2024
1 parent 6d0838a commit 479448e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@ Cargo.lock

# End of https://www.toptal.com/developers/gitignore/api/rust,intellij

config.json
config.json
config/
1 change: 1 addition & 0 deletions .idea/wol.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn read_config_from_file(file_path: &str) -> Config {
}

lazy_static! {
static ref CONFIG: Config = read_config_from_file("config.json");
static ref CONFIG: Config = read_config_from_file("config/config.json");
}

#[tokio::main]
Expand Down

0 comments on commit 479448e

Please sign in to comment.