diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-12-05 16:57:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-05 15:57:01 +0000 |
| commit | 0228462ba10397468b3c0937e2e9cd1d3118e0fc (patch) | |
| tree | 94a09e12b7febce17a78f751d1a5e4f104234307 /crates/typst-layout | |
| parent | caa72f4ec2401c275ddd3d8794dcf0bfdf9697a8 (diff) | |
Bump Rust to 1.83 (#5534)
Diffstat (limited to 'crates/typst-layout')
| -rw-r--r-- | crates/typst-layout/src/grid/repeated.rs | 2 | ||||
| -rw-r--r-- | crates/typst-layout/src/grid/rowspans.rs | 2 | ||||
| -rw-r--r-- | crates/typst-layout/src/inline/line.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/typst-layout/src/grid/repeated.rs b/crates/typst-layout/src/grid/repeated.rs index 972179da..8d08d56d 100644 --- a/crates/typst-layout/src/grid/repeated.rs +++ b/crates/typst-layout/src/grid/repeated.rs @@ -45,7 +45,7 @@ impl<T> Repeatable<T> { } } -impl<'a> GridLayouter<'a> { +impl GridLayouter<'_> { /// Layouts the header's rows. /// Skips regions as necessary. pub fn layout_header( diff --git a/crates/typst-layout/src/grid/rowspans.rs b/crates/typst-layout/src/grid/rowspans.rs index 03b4103f..93d4c960 100644 --- a/crates/typst-layout/src/grid/rowspans.rs +++ b/crates/typst-layout/src/grid/rowspans.rs @@ -85,7 +85,7 @@ pub struct CellMeasurementData<'layouter> { pub frames_in_previous_regions: usize, } -impl<'a> GridLayouter<'a> { +impl GridLayouter<'_> { /// Layout a rowspan over the already finished regions, plus the current /// region's frame and resolved rows, if it wasn't finished yet (because /// we're being called from `finish_region`, but note that this function is diff --git a/crates/typst-layout/src/inline/line.rs b/crates/typst-layout/src/inline/line.rs index 6dca95a9..ef7e26c3 100644 --- a/crates/typst-layout/src/inline/line.rs +++ b/crates/typst-layout/src/inline/line.rs @@ -38,7 +38,7 @@ pub struct Line<'a> { pub dash: Option<Dash>, } -impl<'a> Line<'a> { +impl Line<'_> { /// Create an empty line. pub fn empty() -> Self { Self { @@ -685,7 +685,7 @@ impl<'a> Deref for Items<'a> { } } -impl<'a> DerefMut for Items<'a> { +impl DerefMut for Items<'_> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } |
