Fix Clippy errors

This commit is contained in:
+merlan #flirora 2025-02-18 16:32:38 -05:00
parent 327872fdc2
commit 2db7ee0292

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