summaryrefslogtreecommitdiffstats
path: root/src/app/widgets/process_table
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2022-11-10 01:22:19 -0500
committerGitHub <noreply@github.com>2022-11-10 01:22:19 -0500
commit99fc5fc2c85b714c81ec6a7fca2615853e120caa (patch)
treef87e929adf6922872b6a1de2acfb62820052fc7f /src/app/widgets/process_table
parentf5ec9191f270ffb4fc36e34836e931d3ef55a162 (diff)
refactor: run cargo +nightly fmt with group_imports (#885)
* refactor: add some disabled unstable fmt options * run cargo +nightly fmt with group_imports * separate out the cfg-specific imports for clarity
Diffstat (limited to 'src/app/widgets/process_table')
-rw-r--r--src/app/widgets/process_table/proc_widget_column.rs7
-rw-r--r--src/app/widgets/process_table/proc_widget_data.rs3
2 files changed, 4 insertions, 6 deletions
diff --git a/src/app/widgets/process_table/proc_widget_column.rs b/src/app/widgets/process_table/proc_widget_column.rs
index 4830bc65..691aec02 100644
--- a/src/app/widgets/process_table/proc_widget_column.rs
+++ b/src/app/widgets/process_table/proc_widget_column.rs
@@ -1,12 +1,11 @@
+use std::{borrow::Cow, cmp::Reverse};
+
+use super::ProcWidgetData;
use crate::{
components::data_table::{ColumnHeader, SortsRow},
utils::gen_util::sort_partial_fn,
};
-use std::{borrow::Cow, cmp::Reverse};
-
-use super::ProcWidgetData;
-
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
pub enum ProcColumn {
CpuPercent,
diff --git a/src/app/widgets/process_table/proc_widget_data.rs b/src/app/widgets/process_table/proc_widget_data.rs
index 4957c87f..acb33af4 100644
--- a/src/app/widgets/process_table/proc_widget_data.rs
+++ b/src/app/widgets/process_table/proc_widget_data.rs
@@ -6,6 +6,7 @@ use std::{
use concat_string::concat_string;
use tui::{text::Text, widgets::Row};
+use super::proc_widget_column::ProcColumn;
use crate::{
app::data_harvester::processes::ProcessHarvest,
canvas::Painter,
@@ -15,8 +16,6 @@ use crate::{
Pid,
};
-use super::proc_widget_column::ProcColumn;
-
#[derive(Clone)]
enum IdType {
Name(String),