summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-02-24 13:28:01 +0100
committerGitHub <noreply@github.com>2025-02-24 12:28:01 +0000
commit69c3f957051358eff961addbcae4ff02448513dc (patch)
tree4108c418417313d084318ffecf59cab56de32cb9 /crates/typst-library/src/layout
parentebe25432641a729780578a2440eaf9fb07c80e38 (diff)
Bump MSRV to 1.83 and Rust in CI to 1.85 (#5946)
Diffstat (limited to 'crates/typst-library/src/layout')
-rw-r--r--crates/typst-library/src/layout/grid/resolve.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/layout/grid/resolve.rs b/crates/typst-library/src/layout/grid/resolve.rs
index 762f94ed..08d0130d 100644
--- a/crates/typst-library/src/layout/grid/resolve.rs
+++ b/crates/typst-library/src/layout/grid/resolve.rs
@@ -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);
}
}