mirror of https://github.com/stelzo/typst.git
Fix variable name (#4042)
This commit is contained in:
parent
1247c6d8e1
commit
2c678e8228
|
|
@ -258,7 +258,7 @@ impl Introspector {
|
|||
pub fn position(&self, location: Location) -> Position {
|
||||
self.elems
|
||||
.get(&location)
|
||||
.map(|(_, loc)| *loc)
|
||||
.map(|&(_, pos)| pos)
|
||||
.unwrap_or(Position { page: NonZeroUsize::ONE, point: Point::zero() })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue