mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove some uses of write!
in components/style
This commit is contained in:
parent
17aa04b712
commit
38043a71de
3 changed files with 11 additions and 4 deletions
|
@ -424,7 +424,11 @@ impl ToCss for NoCalcLength {
|
|||
NoCalcLength::FontRelative(length) => length.to_css(dest),
|
||||
NoCalcLength::ViewportPercentage(length) => length.to_css(dest),
|
||||
/* This should only be reached from style dumping code */
|
||||
NoCalcLength::ServoCharacterWidth(CharacterWidth(i)) => write!(dest, "CharWidth({})", i),
|
||||
NoCalcLength::ServoCharacterWidth(CharacterWidth(i)) => {
|
||||
dest.write_str("CharWidth(")?;
|
||||
i.to_css(dest)?;
|
||||
dest.write_char(')')
|
||||
}
|
||||
#[cfg(feature = "gecko")]
|
||||
NoCalcLength::Physical(length) => length.to_css(dest),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue