diff options
| author | Beiri22 <beier1@hs-mittweida.de> | 2023-08-25 14:27:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-25 14:27:50 +0200 |
| commit | ea469c2df6378e8ce860217cd100831ae6ee8d9f (patch) | |
| tree | 1c515a45523117e0e371c02ea63f1c0d292944c5 /crates/typst-library/src/layout | |
| parent | 94df32a91973ace83f5f628db3daa19725be11e3 (diff) | |
calm down clippy even more (#1997)
Diffstat (limited to 'crates/typst-library/src/layout')
| -rw-r--r-- | crates/typst-library/src/layout/table.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/crates/typst-library/src/layout/table.rs b/crates/typst-library/src/layout/table.rs index 2cbaa9c3..11f37b8a 100644 --- a/crates/typst-library/src/layout/table.rs +++ b/crates/typst-library/src/layout/table.rs @@ -229,12 +229,10 @@ impl Layout for TableElem { /// and after the extents, e.g. [10mm, 5mm] -> [0mm, 10mm, 15mm]. fn points(extents: impl IntoIterator<Item = Abs>) -> impl Iterator<Item = Abs> { let mut offset = Abs::zero(); - std::iter::once(Abs::zero()) - .chain(extents.into_iter()) - .map(move |extent| { - offset += extent; - offset - }) + std::iter::once(Abs::zero()).chain(extents).map(move |extent| { + offset += extent; + offset + }) } /// A value that can be configured per cell. |
