Fix Clippy errors

This commit is contained in:
+merlan #flirora 2025-02-18 16:32:38 -05:00
parent e48811a6d4
commit 0ed8280e3e

View File

@ -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);