fix clippy

This commit is contained in:
stelzo 2025-02-20 23:10:31 +01:00
parent d3a3ddd1c4
commit 8403097443
No known key found for this signature in database
GPG Key ID: FC4EF89052319374
1 changed files with 1 additions and 1 deletions

View File

@ -1387,7 +1387,7 @@ impl<'a> CellGrid<'a> {
// Include the gutter right before the footer, unless there is
// none, or the gutter is already included in the header (no
// rows between the header and the footer).
if header_end.map_or(true, |header_end| header_end != footer.start) {
if header_end != Some(footer.start) {
footer.start = footer.start.saturating_sub(1);
}
}