diff options
Diffstat (limited to 'src/widgets/process_table/proc_widget_data.rs')
-rw-r--r-- | src/widgets/process_table/proc_widget_data.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/process_table/proc_widget_data.rs b/src/widgets/process_table/proc_widget_data.rs index 925bbe65..418d9997 100644 --- a/src/widgets/process_table/proc_widget_data.rs +++ b/src/widgets/process_table/proc_widget_data.rs @@ -101,7 +101,7 @@ impl PartialOrd for MemUsage { impl Display for MemUsage { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - MemUsage::Percent(percent) => f.write_fmt(format_args!("{:.1}%", percent)), + MemUsage::Percent(percent) => f.write_fmt(format_args!("{percent:.1}%")), MemUsage::Bytes(bytes) => f.write_str(&binary_byte_string(*bytes)), } } |