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:
parent
609d273ab2
commit
2742a39aaa
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue