diff --git a/src/data/mod.rs b/src/data/mod.rs index 532660f..f1af199 100644 --- a/src/data/mod.rs +++ b/src/data/mod.rs @@ -4,11 +4,11 @@ use clap::{Parser, ValueEnum}; use libmacchina::traits::GeneralReadout as _; use libmacchina::traits::{ReadoutError, ShellFormat, ShellKind}; use libmacchina::{BatteryReadout, GeneralReadout, KernelReadout, MemoryReadout, PackageReadout}; +use ratatui::style::{Color, Style}; +use ratatui::text::{Line, Span, Text}; use serde::{Deserialize, Serialize}; use std::borrow::Cow; use std::fmt::Display; -use ratatui::style::{Color, Style}; -use ratatui::text::{Span, Line, Text}; /// This enum contains all the possible keys, e.g. _Host_, _Machine_, _Kernel_, etc. #[allow(clippy::upper_case_acronyms)] diff --git a/src/widgets/readout.rs b/src/widgets/readout.rs index 07989cf..74424f1 100644 --- a/src/widgets/readout.rs +++ b/src/widgets/readout.rs @@ -1,12 +1,12 @@ use crate::data::{Readout, ReadoutKey}; use crate::theme::components::{Palette, PaletteType}; use crate::theme::Theme; -use std::collections::HashMap; use ratatui::buffer::Buffer; use ratatui::layout::{Margin, Rect}; use ratatui::style::{Color, Style}; -use ratatui::text::{Span, Line, Text}; +use ratatui::text::{Line, Span, Text}; use ratatui::widgets::{Block, Paragraph, Widget}; +use std::collections::HashMap; pub struct ReadoutList<'a> { block: Option>,