From a0c13ff4f74d35ee5e292e336dae66dbcdc627da Mon Sep 17 00:00:00 2001 From: asteri Date: Sat, 11 Apr 2026 23:01:58 +0200 Subject: [PATCH] repove unuused --- src/bin/tui.rs | 2 -- src/config.rs | 2 -- src/docker.rs | 1 - src/server.rs | 2 +- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/bin/tui.rs b/src/bin/tui.rs index 3003041..a72b19e 100644 --- a/src/bin/tui.rs +++ b/src/bin/tui.rs @@ -1,6 +1,4 @@ //extern crate termios; -use ssh_status::config; -use ssh_status::docker; use ssh_status::runner::{Action, Runner}; use std::io::{self, Write}; diff --git a/src/config.rs b/src/config.rs index c2b5897..bdcd8dd 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,8 +1,6 @@ use std::path::Path; use std::{fs, io}; -use std::collections::HashMap; - use serde::Deserialize; use toml; diff --git a/src/docker.rs b/src/docker.rs index bd3b223..a4e6a9c 100644 --- a/src/docker.rs +++ b/src/docker.rs @@ -1,4 +1,3 @@ -use bollard::models::ContainerSummary; use bollard::{Docker, errors::Error}; use crate::config::Service; diff --git a/src/server.rs b/src/server.rs index e48014a..796b875 100644 --- a/src/server.rs +++ b/src/server.rs @@ -30,7 +30,7 @@ impl AppServer { tokio::time::sleep(tokio::time::Duration::from_millis(1000)).await; for (_, app) in clients.lock().await.iter_mut() { - app.update(); + app.update().await; } } });