mirror of
https://github.com/typst/typst
synced 2025-08-23 19:24:14 +08:00
Fix Clippy errors
This commit is contained in:
parent
327872fdc2
commit
2db7ee0292
@ -33,7 +33,7 @@ pub struct Preparation<'a> {
|
|||||||
pub spans: SpanMapper,
|
pub spans: SpanMapper,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Preparation<'a> {
|
impl Preparation<'_> {
|
||||||
/// Get the item that contains the given `text_offset`.
|
/// Get the item that contains the given `text_offset`.
|
||||||
pub fn get(&self, offset: usize) -> &Run {
|
pub fn get(&self, offset: usize) -> &Run {
|
||||||
let idx = self.indices.get(offset).copied().unwrap_or(0);
|
let idx = self.indices.get(offset).copied().unwrap_or(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user