diff options
author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-10-11 17:02:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 17:02:41 +0800 |
commit | b353c51ae8d76921e144abb6197f07236e1b4650 (patch) | |
tree | c93fb91ef3ce1b6a4e797f301e3ce93c6dce57a7 /src/display | |
parent | 4a27da5d5627c7eff0ac8c17c6c031db1879b6d1 (diff) |
Minor refactor of `main.rs` (#301)
* Move CLI structs to their own file
* `main` returns `Result` directly
* Slightly reduced nesting
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/ui.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/ui.rs b/src/display/ui.rs index f70633f..4c13da6 100644 --- a/src/display/ui.rs +++ b/src/display/ui.rs @@ -4,12 +4,12 @@ use chrono::prelude::*; use ratatui::{backend::Backend, Terminal}; use crate::{ + cli::RenderOpts, display::{ components::{HeaderDetails, HelpText, Layout, Table}, UIState, }, network::{display_connection_string, display_ip_or_host, LocalSocket, Utilization}, - RenderOpts, }; pub struct Ui<B> |