Make sure we print 0.

This commit is contained in:
2018-04-14 06:59:49 -07:00
parent 109e23789a
commit 0d08f53d70

View File

@@ -342,6 +342,9 @@ impl fmt::UpperHex for UCN {
fmt.write_char(tochar_upper(x >> 4))?; fmt.write_char(tochar_upper(x >> 4))?;
fmt.write_char(tochar_upper(x >> 0))?; fmt.write_char(tochar_upper(x >> 0))?;
} }
if self.contents.len() == 0 {
fmt.write_char('0')?;
}
Ok(()) Ok(())
} }
} }