Skip to content

Commit 4f3e46b

Browse files
Update temperature.rs
1 parent ff73519 commit 4f3e46b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/conversions/temperature.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,7 @@ mod tests {
157157
let back = convert_temperature(converted, *to_unit, *from_unit);
158158
assert!(
159159
approx_eq(back, temp),
160-
"Round trip failed: {:?} -> {:?} -> {:?}: {} != {}",
161-
from_unit,
162-
to_unit,
163-
from_unit,
164-
back,
165-
temp
160+
"Round trip failed: {from_unit:?} -> {to_unit:?} -> {from_unit:?}: {back} != {temp}"
166161
);
167162
}
168163
}

0 commit comments

Comments
 (0)