diff options
author | Justin Martin <jaming@protonmail.com> | 2023-12-25 17:28:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-25 17:28:54 -0500 |
commit | 28d2950d92f44f3b664fcaeede07e5ed4b30fd49 (patch) | |
tree | c6aef3f821bffdc07c93d87c99b6ce246e951df4 /src/canvas/widgets/cpu_basic.rs | |
parent | c10779ecc0cda4a4d44cc2cb5fd9232fb32c9d05 (diff) |
deps: update ratatui version (#1362)
* cargo update ratatui
* replace convert_arc_labels with convert_mem_labels
* remove redundant generic
---------
Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
Diffstat (limited to 'src/canvas/widgets/cpu_basic.rs')
-rw-r--r-- | src/canvas/widgets/cpu_basic.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/canvas/widgets/cpu_basic.rs b/src/canvas/widgets/cpu_basic.rs index 1ebf7cc6..da502d69 100644 --- a/src/canvas/widgets/cpu_basic.rs +++ b/src/canvas/widgets/cpu_basic.rs @@ -1,7 +1,6 @@ use std::cmp::min; use tui::{ - backend::Backend, layout::{Constraint, Direction, Layout, Rect}, terminal::Frame, widgets::Block, @@ -17,8 +16,8 @@ use crate::{ impl Painter { /// Inspired by htop. - pub fn draw_basic_cpu<B: Backend>( - &self, f: &mut Frame<'_, B>, app_state: &mut App, draw_loc: Rect, widget_id: u64, + pub fn draw_basic_cpu( + &self, f: &mut Frame<'_>, app_state: &mut App, draw_loc: Rect, widget_id: u64, ) { // Skip the first element, it's the "all" element if app_state.converted_data.cpu_data.len() > 1 { |