From 0cc19bf98d64831b85ba203c278c5130e27cb3a2 Mon Sep 17 00:00:00 2001 From: ngn Date: Mon, 20 Jan 2025 06:04:17 +0300 Subject: [PATCH 1/2] fix unclosed '(' in settings.rs Signed-off-by: ngn --- src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } From 27665b84363ee9d3b450069bfb4f26d3e1621bdb Mon Sep 17 00:00:00 2001 From: ngn Date: Mon, 20 Jan 2025 06:21:34 +0300 Subject: [PATCH 2/2] add actix-files to the cargo.toml Signed-off-by: ngn --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) 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"