diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-08-13 02:04:53 -0400 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-08-13 02:04:53 -0400 |
commit | 84f63f2f8306382dbf5cab819589161bf0b7c093 (patch) | |
tree | 6cad67cb9ef7d20f856138b333ac34f7b787fb71 /src/canvas/widgets/mem_basic.rs | |
parent | e1a73783861f526e65c4372ba01c95888b0b75b8 (diff) |
refactor: remove redundant newlines
Diffstat (limited to 'src/canvas/widgets/mem_basic.rs')
-rw-r--r-- | src/canvas/widgets/mem_basic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/canvas/widgets/mem_basic.rs b/src/canvas/widgets/mem_basic.rs index e3abe7ad..43003e86 100644 --- a/src/canvas/widgets/mem_basic.rs +++ b/src/canvas/widgets/mem_basic.rs @@ -54,7 +54,7 @@ impl MemBasicWidget for Painter { let num_bars_ram = calculate_basic_use_bars(ram_use_percentage, bar_length); let num_bars_swap = calculate_basic_use_bars(swap_use_percentage, bar_length); let mem_label = format!( - "RAM[{}{}{:3.0}%]\n", + "RAM[{}{}{:3.0}%]", "|".repeat(num_bars_ram), " ".repeat(bar_length - num_bars_ram), ram_use_percentage.round(), |