it didnt actually create the file

This commit is contained in:
slonkazoid 2024-04-13 15:29:09 +03:00
parent 4b3c723ce1
commit 8e4369fa99
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -58,6 +58,7 @@ pub async fn load() -> Config {
println!("configuration file doesn't exist, creating"); println!("configuration file doesn't exist, creating");
match tokio::fs::OpenOptions::new() match tokio::fs::OpenOptions::new()
.write(true) .write(true)
.create(true)
.open(&config_file) .open(&config_file)
.await .await
{ {