summaryrefslogtreecommitdiff
path: root/crates/typst-ide/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-10-10 17:51:48 +0200
committerGitHub <noreply@github.com>2024-10-10 15:51:48 +0000
commit92aacdb480286a8a1962a49843e0c271f6ef93a8 (patch)
treeb0765f35d94fec0e0fd4c1db46b75b453d755197 /crates/typst-ide/src
parentf1f2de889a2d7a7533453956595acb82ab1da125 (diff)
Fix scales for unit conversion (#5169)
Diffstat (limited to 'crates/typst-ide/src')
-rw-r--r--crates/typst-ide/src/jump.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-ide/src/jump.rs b/crates/typst-ide/src/jump.rs
index b798defa..e48db986 100644
--- a/crates/typst-ide/src/jump.rs
+++ b/crates/typst-ide/src/jump.rs
@@ -205,7 +205,7 @@ mod tests {
macro_rules! assert_approx_eq {
($l:expr, $r:expr) => {
- assert!(($l.to_raw() - $r.to_raw()).abs() < 0.1, "{:?} ≉ {:?}", $l, $r);
+ assert!(($l - $r).abs() < Abs::pt(0.1), "{:?} ≉ {:?}", $l, $r);
};
}