diff --git a/Cargo.toml b/Cargo.toml index e877beb..49f1f83 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,7 @@ version = "0.1.0" actix-http = "3.0.4" actix-rt = "2" actix-web = "4.0.1" +actix-files = "0.6.6" bincode = "1.3.3" chrono = "0.4.23" config = "0.13" diff --git a/src/settings.rs b/src/settings.rs index f2768f4..368ef5d 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -43,7 +43,7 @@ impl Settings { if let Ok(path) = env::var("LIBMEDIUM") { s = s.add_source(File::with_name(&path)); } else if Path::new("./config.toml").exists() { - s = s.add_source(File::with_name("./config.toml"); + s = s.add_source(File::with_name("./config.toml")); } else { log::warn!("configuration file not found"); }