mirror of
https://github.com/typst/typst
synced 2025-08-15 15:38:33 +08:00
clippy
This commit is contained in:
parent
d992e2c7c1
commit
ee8561a963
@ -908,7 +908,7 @@ struct CellGridResolver<'a, 'b, 'x> {
|
|||||||
span: Span,
|
span: Span,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'b, 'x> CellGridResolver<'a, 'b, 'x> {
|
impl<'x> CellGridResolver<'_, '_, 'x> {
|
||||||
fn resolve<T, C, I>(mut self, children: C) -> SourceResult<CellGrid<'x>>
|
fn resolve<T, C, I>(mut self, children: C) -> SourceResult<CellGrid<'x>>
|
||||||
where
|
where
|
||||||
T: ResolvableCell + Default,
|
T: ResolvableCell + Default,
|
||||||
@ -1219,6 +1219,7 @@ impl<'a, 'b, 'x> CellGridResolver<'a, 'b, 'x> {
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn resolve_grid_child<T, I>(
|
fn resolve_grid_child<T, I>(
|
||||||
&mut self,
|
&mut self,
|
||||||
c: usize,
|
c: usize,
|
||||||
@ -1324,10 +1325,7 @@ impl<'a, 'b, 'x> CellGridResolver<'a, 'b, 'x> {
|
|||||||
ResolvableGridChild::Item(item) => (None, Some(item)),
|
ResolvableGridChild::Item(item) => (None, Some(item)),
|
||||||
};
|
};
|
||||||
|
|
||||||
let items = header_footer_items
|
let items = header_footer_items.into_iter().flatten().chain(simple_item);
|
||||||
.into_iter()
|
|
||||||
.flatten()
|
|
||||||
.chain(simple_item.into_iter());
|
|
||||||
for item in items {
|
for item in items {
|
||||||
let cell = match item {
|
let cell = match item {
|
||||||
ResolvableGridItem::HLine { y, start, end, stroke, span, position } => {
|
ResolvableGridItem::HLine { y, start, end, stroke, span, position } => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user