diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-30 15:55:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-30 13:55:45 +0000 |
| commit | 2c678e82280d4033a86a3378e7a73f0b033548b7 (patch) | |
| tree | e60168049ef37f27a8cfa69e8fa57f1b5c4ea5fe | |
| parent | 1247c6d8e102cc40c3ec0d913a28ea904e4e4dec (diff) | |
Fix variable name (#4042)
| -rw-r--r-- | crates/typst/src/introspection/introspector.rs | 2 |
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() }) } } |
