From 2742a39aaa1568fde3c82faceaec1d3c91d750f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Sat, 20 Oct 2018 15:04:13 +0200 Subject: [PATCH] update for a change after actix-web 0.7.8 somewhere between 0.7.8 and 0.7.12 `web::create_app` started returning a `Result`. --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d383afe..bf5daba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,10 +55,11 @@ fn main() -> Result<(), std::io::Error> { let root = std::path::PathBuf::from(chdir).canonicalize()?; std::env::set_current_dir(&root)?; + let sys = actix::System::new("http_server_rs"); info!("Serving files from {:?}", root); - server::new(move || web::create_app(&root)) + server::new(move || web::create_app(&root).unwrap()) .bind(&bind_addr)? .start();