Skip to content

Commit 7b52211

Browse files
committed
Don't need write macro - call fmt directly.
1 parent 928433a commit 7b52211

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/measurement.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ macro_rules! implement_display {
7171
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7272
let (unit, value) = self.get_appropriate_units();
7373
value.fmt(f)?;
74-
write!(f, "\u{00A0}{0}", unit)
74+
"\u{00A0}".fmt(f)?;
75+
unit.fmt(f)
7576
}
7677
}
7778
)*)

0 commit comments

Comments
 (0)