Clippy suggestions
This commit is contained in:
parent
00cb8f7a9b
commit
c48a37d56a
5 changed files with 22 additions and 22 deletions
|
|
@ -38,7 +38,7 @@ pub fn render_monitor_list(main_frame: &mut Frame, area: Rect, state: &mut Dashb
|
|||
let mut lines_skipped = 0;
|
||||
let half = state.get_total_lenght().saturating_div(2);
|
||||
|
||||
for (_i, group) in state.groups.iter().enumerate() {
|
||||
for group in state.groups.iter() {
|
||||
let group_height = group.monitors.len() + BORDER_LINES_VIEW;
|
||||
|
||||
if lines_skipped + group_height <= scroll_pos {
|
||||
|
|
@ -103,7 +103,7 @@ fn render_group(frame: &mut Frame, area: Rect, group: &GroupViewState, is_first_
|
|||
fn render_monitor_table(
|
||||
frame: &mut Frame,
|
||||
area: Rect,
|
||||
monitors: &Vec<MonitorViewState>,
|
||||
monitors: &[MonitorViewState],
|
||||
is_first_half: bool,
|
||||
) {
|
||||
let max_items = area.height as usize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue