summaryrefslogtreecommitdiff
path: root/crates/typst-layout/src/grid/layouter.rs
diff options
context:
space:
mode:
authorevie <50974538+mi2ebi@users.noreply.github.com>2025-03-11 03:00:53 -0700
committerGitHub <noreply@github.com>2025-03-11 10:00:53 +0000
commit3650859ae8823f47c9f50db6ad5ed52a0477bf15 (patch)
treeccb21d73c0263019744ea5e8276fbda91ee4f7f5 /crates/typst-layout/src/grid/layouter.rs
parentbd531e08dc3dbe26ac779d5730bf0814800b7de9 (diff)
Fix `cargo clippy` warnings (mostly about `.repeat.take` and `.next_back`) (#6038)
Diffstat (limited to 'crates/typst-layout/src/grid/layouter.rs')
-rw-r--r--crates/typst-layout/src/grid/layouter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-layout/src/grid/layouter.rs b/crates/typst-layout/src/grid/layouter.rs
index af47ff72..dc9e2238 100644
--- a/crates/typst-layout/src/grid/layouter.rs
+++ b/crates/typst-layout/src/grid/layouter.rs
@@ -1469,7 +1469,7 @@ impl<'a> GridLayouter<'a> {
// last height is the one for the current region.
rowspan
.heights
- .extend(std::iter::repeat(Abs::zero()).take(amount_missing_heights));
+ .extend(std::iter::repeat_n(Abs::zero(), amount_missing_heights));
// Ensure that, in this region, the rowspan will span at least
// this row.