diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2022-10-12 19:02:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 19:02:54 -0400 |
commit | 436dadb683cc82b8d2310a3a015c66bf08398432 (patch) | |
tree | a16a51d85d6b80e85837b57e1890805aa54d1719 /src/app | |
parent | df13d12551456610d1036bdb6d02f22a79e9a6b9 (diff) |
refactor: switch to associated type for SortsRow (#828)
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/widgets/process_table/proc_widget_column.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/widgets/process_table/proc_widget_column.rs b/src/app/widgets/process_table/proc_widget_column.rs index 5578598d..4830bc65 100644 --- a/src/app/widgets/process_table/proc_widget_column.rs +++ b/src/app/widgets/process_table/proc_widget_column.rs @@ -64,7 +64,9 @@ impl ColumnHeader for ProcColumn { } } -impl SortsRow<ProcWidgetData> for ProcColumn { +impl SortsRow for ProcColumn { + type DataType = ProcWidgetData; + fn sort_data(&self, data: &mut [ProcWidgetData], descending: bool) { match self { ProcColumn::CpuPercent => { |