X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=backend%2Fsrc%2Fmain.rs;h=b3025204b6c0851d843b69e86350a2319ecace67;hb=HEAD;hp=c186c3f6dcc500b6a4ffbf6029a5581e542289ff;hpb=59a054a524604e924aa9e54f837c8bd4d090c0f2;p=valheim_web.git diff --git a/backend/src/main.rs b/backend/src/main.rs index c186c3f..b302520 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -1,7 +1,6 @@ extern crate askama; use std::{ sync::Mutex, env::args, fs::File, io::prelude::* }; - use actix_files as fs; use actix_web::{ get, web, Responder, middleware, App, HttpServer }; use askama::Template; @@ -99,7 +98,7 @@ fn load_config() -> Config { } } -#[actix_rt::main] +#[actix_web::main] async fn main() -> std::io::Result<()> { let config = load_config(); let port = config.port;