Fix variable name (#4042)

This commit is contained in:
Laurenz 2024-04-30 15:55:45 +02:00 committed by GitHub
parent 1247c6d8e1
commit 2c678e8228
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() })
}
}