diff --git a/crates/typst-layout/src/grid/repeated.rs b/crates/typst-layout/src/grid/repeated.rs index 2ebd2d9a7..a93acd98d 100644 --- a/crates/typst-layout/src/grid/repeated.rs +++ b/crates/typst-layout/src/grid/repeated.rs @@ -244,7 +244,7 @@ impl<'a> GridLayouter<'a> { // Simulate the footer again; the region's 'full' might have // changed. let (footer_height, footer_heights) = self.simulate_footer_heights( - self.repeating_footers.iter().map(|x| *x), + self.repeating_footers.iter().copied(), &self.regions, engine, disambiguator, @@ -585,7 +585,7 @@ impl<'a> GridLayouter<'a> { /// footers, and skips to fitting region. pub fn prepare_repeating_footers( &mut self, - footers: impl Iterator + ExactSizeIterator + Clone, + footers: impl ExactSizeIterator + Clone, at_region_top: bool, engine: &mut Engine, disambiguator: usize, @@ -641,7 +641,7 @@ impl<'a> GridLayouter<'a> { pub fn simulate_footer_heights( &self, - footers: impl Iterator + ExactSizeIterator, + footers: impl ExactSizeIterator, regions: &Regions<'_>, engine: &mut Engine, disambiguator: usize, diff --git a/crates/typst-library/src/layout/grid/resolve.rs b/crates/typst-library/src/layout/grid/resolve.rs index c51db2d1e..d51b55516 100644 --- a/crates/typst-library/src/layout/grid/resolve.rs +++ b/crates/typst-library/src/layout/grid/resolve.rs @@ -2272,6 +2272,7 @@ fn resolve_cell_position( /// /// When `skip_rows` is true, one row is skipped on each iteration, preserving /// the column. That is used to find a position for a fixed column cell. +#[allow(clippy::too_many_arguments)] #[inline] fn find_next_available_position( headers: &[Repeatable
], @@ -2398,7 +2399,7 @@ fn skip_auto_index_through_fully_merged_rows( /// repeating. fn simulate_footer_repetition(footers: &[Repeatable