mirror of
https://github.com/typst/typst
synced 2025-08-13 14:47:54 +08:00
use is_none_or
This commit is contained in:
parent
838bdc0b89
commit
5ac4ab2f1b
@ -1119,7 +1119,7 @@ impl<'a> CellGrid<'a> {
|
|||||||
// - Detect when header or footer collided with
|
// - Detect when header or footer collided with
|
||||||
// another header or footer and provide a
|
// another header or footer and provide a
|
||||||
// better error message if so.
|
// better error message if so.
|
||||||
if child_range.map_or(true, |r| new_y < r.start) {
|
if child_range.is_none_or(|r| new_y < r.start) {
|
||||||
bail!(
|
bail!(
|
||||||
cell_span,
|
cell_span,
|
||||||
"cell would cause header or footer to expand to non-empty row {new_y}";
|
"cell would cause header or footer to expand to non-empty row {new_y}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user