mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
write optimization
This commit is contained in:
parent
d6fa6e453a
commit
19463d0904
1 changed files with 5 additions and 6 deletions
|
@ -411,12 +411,11 @@ ${helpers.single_keyword("font-variant-position",
|
|||
|
||||
impl ToCss for FeatureTagValue {
|
||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
|
||||
let s = match self.value {
|
||||
1 => format!("\"{}\"", self.tag),
|
||||
0 => format!("\"{}\" off", self.tag),
|
||||
x => format!("\"{}\" {}", self.tag, x)
|
||||
};
|
||||
dest.write_str(&s)
|
||||
match self.value {
|
||||
1 => write!(dest, "\"{}\"", self.tag),
|
||||
0 => write!(dest, "\"{}\" off", self.tag),
|
||||
x => write!(dest, "\"{}\" {}", self.tag, x)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue