diff --git a/crates/typst-library/src/layout/grid/resolve.rs b/crates/typst-library/src/layout/grid/resolve.rs index 9afba2949..13123441b 100644 --- a/crates/typst-library/src/layout/grid/resolve.rs +++ b/crates/typst-library/src/layout/grid/resolve.rs @@ -908,7 +908,7 @@ struct CellGridResolver<'a, 'b, 'x> { span: Span, } -impl<'a, 'b, 'x> CellGridResolver<'a, 'b, 'x> { +impl<'x> CellGridResolver<'_, '_, 'x> { fn resolve(mut self, children: C) -> SourceResult> where T: ResolvableCell + Default, @@ -1219,6 +1219,7 @@ impl<'a, 'b, 'x> CellGridResolver<'a, 'b, 'x> { )) } + #[allow(clippy::too_many_arguments)] fn resolve_grid_child( &mut self, c: usize, @@ -1324,10 +1325,7 @@ impl<'a, 'b, 'x> CellGridResolver<'a, 'b, 'x> { ResolvableGridChild::Item(item) => (None, Some(item)), }; - let items = header_footer_items - .into_iter() - .flatten() - .chain(simple_item.into_iter()); + let items = header_footer_items.into_iter().flatten().chain(simple_item); for item in items { let cell = match item { ResolvableGridItem::HLine { y, start, end, stroke, span, position } => {