From dc69de9e3535e3ca49f6b74c54d2c32d218c2d81 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 1 Mar 2025 18:38:46 -0700 Subject: Clean up warnings --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 98d4754..b65bb7b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,9 +2,9 @@ mod config; mod system; -use crossterm::{cursor::{self, MoveTo}, terminal::{Clear, ClearType, DisableLineWrap, EnableLineWrap, EnterAlternateScreen, LeaveAlternateScreen}}; +use crossterm::{cursor::MoveTo, terminal::{Clear, ClearType, DisableLineWrap, EnableLineWrap, EnterAlternateScreen, LeaveAlternateScreen}}; use system::{Manager, SystemThreadCommand}; -use std::{collections::{HashMap, VecDeque}, fs, io::{self, Write}, sync::mpsc, thread::{self, sleep, JoinHandle}, time::Duration}; +use std::{collections::{HashMap, VecDeque}, fs, io, sync::mpsc, thread::{self, sleep, JoinHandle}, time::Duration}; use tokio::runtime; pub struct UiState { @@ -207,7 +207,7 @@ fn spawn_system(system_name : &String, system_config: config::System, waker: mps }).unwrap() } -fn update_ui(ui_state: &UiState, config: &config::Config) { +fn update_ui(ui_state: &UiState, _config: &config::Config) { crossterm::execute!(io::stdout(), Clear(ClearType::FromCursorUp)).unwrap(); crossterm::execute!(io::stdout(), MoveTo(0, 0)).unwrap(); -- cgit 1.4.1