Replace write! with to_css and write_str in some ToCss impls

This commit is contained in:
Xidorn Quan 2017-08-20 17:11:51 +10:00
parent c1b196b7cb
commit 7e92c15e00
11 changed files with 58 additions and 42 deletions

View file

@ -440,7 +440,7 @@ impl ToCss for Integer {
if self.was_calc {
dest.write_str("calc(")?;
}
write!(dest, "{}", self.value)?;
self.value.to_css(dest)?;
if self.was_calc {
dest.write_str(")")?;
}