From: Greg Burri Date: Thu, 1 Jul 2021 12:36:59 +0000 (+0200) Subject: Cleaning X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=55bef4c00d6f8f6d87fdf482ca63b5efcd85575e;p=minecraft_web.git Cleaning --- diff --git a/backend/src/main.rs b/backend/src/main.rs index 2129033..c4d7d50 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; @@ -10,7 +9,6 @@ use serde::{ Deserialize, Serialize }; use cached::proc_macro::cached; mod consts; -mod tests; mod minecraft_controller; #[derive(Template)] @@ -56,7 +54,8 @@ async fn main_page(config_shared: web::Data>) -> impl Responder { uptime: value_unknown.clone(), world_size: value_unknown.clone(), active_players: value_unknown.clone(), - last_backup: value_unknown.clone() } + last_backup: value_unknown.clone() + } } } } diff --git a/backend/src/minecraft_controller.rs b/backend/src/minecraft_controller.rs index 7af13dd..dfba3ee 100644 --- a/backend/src/minecraft_controller.rs +++ b/backend/src/minecraft_controller.rs @@ -1,7 +1,5 @@ -use sysinfo::{ ProcessExt, SystemExt }; - use std::{ fs, time::SystemTime }; - +use sysinfo::{ ProcessExt, SystemExt }; use chrono::{ DateTime, offset::Local }; #[derive(Clone, Debug)] diff --git a/backend/src/tests.rs b/backend/src/tests.rs deleted file mode 100644 index 0ee7ce1..0000000 --- a/backend/src/tests.rs +++ /dev/null @@ -1,6 +0,0 @@ -//use minecraft_controller::*; - -#[test] -fn test1() { - assert_eq!(2, 1 + 1); -} \ No newline at end of file