Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Zhiburt <[email protected]>
  • Loading branch information
zhiburt committed Jul 24, 2023
1 parent 03ae7b4 commit 261cfd4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions papergrid/src/grid/iterable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,7 @@ fn print_grid_general<F: Write, R: Records, D: Dimension, C: Colors>(
buf.clear();
}

if height == 0 && !has_horizontal {
is_prev_row_skipped = true;
} else {
is_prev_row_skipped = false;
}

is_prev_row_skipped = height == 0 && !has_horizontal;
line += height;
row += 1;
}
Expand Down

0 comments on commit 261cfd4

Please sign in to comment.