Skip to content

Commit

Permalink
refactor: apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Oct 3, 2024
1 parent 786b0ac commit 9e1a66e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ async fn main() {
let config_path = match env::var("CONFIG_PATH") {
Ok(path) => path,
Err(_) => {
if cfg!(debug_assertions) { "./Config.toml".into() } else { "/etc/config/Config.toml".into() }
if cfg!(debug_assertions) {
"./Config.toml".into()
} else {
"/etc/config/Config.toml".into()
}
}
};
let config = ApiConfig::from_path(&config_path);
Expand Down

0 comments on commit 9e1a66e

Please sign in to comment.