fix(dist): respect units settings in DIST measurement output

This commit is contained in:
Karim Jerbi committed 2026-09-22 11:42:56 +01:00
1 parent fcbab57627
commit 00e102607c
8 files changed
+172 -30

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ pub fn format_length(value: f64) -> String {
/// Drop the sign from a formatted number whose digits all rounded to zero. A
/// rotation leaves coordinates like -1e-15 behind, which read as `-0.0000`.
fn without_negative_zero(text: String) -> String {
pub fn without_negative_zero(text: String) -> String {
match text.strip_prefix('-') {
Some(rest)
if rest.chars().any(|c| c.is_ascii_digit())