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`.
This commit is contained in:
Дамјан Георгиевски 2018-10-20 15:04:13 +02:00
parent 609d273ab2
commit 2742a39aaa

View file

@ -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();