summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-04-30 15:55:45 +0200
committerGitHub <noreply@github.com>2024-04-30 13:55:45 +0000
commit2c678e82280d4033a86a3378e7a73f0b033548b7 (patch)
treee60168049ef37f27a8cfa69e8fa57f1b5c4ea5fe
parent1247c6d8e102cc40c3ec0d913a28ea904e4e4dec (diff)
Fix variable name (#4042)
-rw-r--r--crates/typst/src/introspection/introspector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst/src/introspection/introspector.rs b/crates/typst/src/introspection/introspector.rs
index 719064c0..e8a4dccc 100644
--- a/crates/typst/src/introspection/introspector.rs
+++ b/crates/typst/src/introspection/introspector.rs
@@ -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() })
}
}