diff options
author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-08-25 16:24:50 +0800 |
---|---|---|
committer | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-08-25 17:34:37 +0800 |
commit | a43591dfd3a19da28f67aed87e182eda32f27e9f (patch) | |
tree | 2531649a244c53204fa3cb85d675a09484a8264f | |
parent | 492d1f2e2ff5a5cad0c92631288e353e16dee962 (diff) |
Fix `cargo {clippy,fmt}` complaints
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index ca16c1e..ee197aa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,19 +15,18 @@ use network::{ use ::crossterm::event::{Event, KeyCode, KeyEvent, KeyModifiers}; use ::crossterm::terminal; use ::pnet::datalink::{DataLinkReceiver, NetworkInterface}; +use ::ratatui::backend::Backend; use ::std::collections::HashMap; use ::std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; use ::std::sync::{Arc, Mutex}; use ::std::thread; use ::std::thread::park_timeout; -use ::ratatui::backend::Backend; use std::process; -use ::std::io::Write; +use ::ratatui::backend::CrosstermBackend; use ::std::net::Ipv4Addr; use ::std::time::{Duration, Instant}; -use ::ratatui::backend::CrosstermBackend; use std::sync::RwLock; use structopt::StructOpt; |