mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -226,7 +226,10 @@ impl ToCss for FontSettingTagInt {
|
|||
match self.0 {
|
||||
1 => Ok(()),
|
||||
0 => dest.write_str(" off"),
|
||||
x => write!(dest, " {}", x)
|
||||
x => {
|
||||
dest.write_char(' ')?;
|
||||
x.to_css(dest)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue