mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix Clippy errors
This commit is contained in:
parent
e48811a6d4
commit
0ed8280e3e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user