X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=backend%2Fsrc%2Fmain.rs;h=b3025204b6c0851d843b69e86350a2319ecace67;hb=aa59a1f9b79009079a5a1fbafd4f65d3130e9ee2;hp=c186c3f6dcc500b6a4ffbf6029a5581e542289ff;hpb=83993038d45c0d11c11417f9b47e19eb61e53928;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;