mirror of
https://github.com/Noratrieb/killjoy-turret.git
synced 2026-01-14 14:45:01 +01:00
oh
This commit is contained in:
parent
97fe43138a
commit
43063e600f
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ impl EventHandler for Handler {
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
let file_path = std::env::var("CONFIG_PATH").unwrap_or_else(|| "./config.json".to_string());
|
let file_path = std::env::var("CONFIG_PATH").unwrap_or_else(|_| "./config.json".to_string());
|
||||||
println!("reading config from {file_path}");
|
println!("reading config from {file_path}");
|
||||||
let file = fs::read_to_string(file_path).unwrap();
|
let file = fs::read_to_string(file_path).unwrap();
|
||||||
let config = serde_json::from_str::<ConfigFile>(&file).unwrap();
|
let config = serde_json::from_str::<ConfigFile>(&file).unwrap();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue