From 0ed8280e3e4c1d34648543ea65cdb2f38d1ef1b1 Mon Sep 17 00:00:00 2001 From: +merlan #flirora Date: Tue, 18 Feb 2025 16:32:38 -0500 Subject: [PATCH] Fix Clippy errors --- crates/typst-layout/src/inline/prepare.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-layout/src/inline/prepare.rs b/crates/typst-layout/src/inline/prepare.rs index 45585496b..ac834e3cb 100644 --- a/crates/typst-layout/src/inline/prepare.rs +++ b/crates/typst-layout/src/inline/prepare.rs @@ -33,7 +33,7 @@ pub struct Preparation<'a> { pub spans: SpanMapper, } -impl<'a> Preparation<'a> { +impl Preparation<'_> { /// Get the item that contains the given `text_offset`. pub fn get(&self, offset: usize) -> &Run { let idx = self.indices.get(offset).copied().unwrap_or(0);