mirror of
https://github.com/servo/servo.git
synced 2025-06-29 03:23:41 +01:00
style: Fix code style of a recent commit.
This commit is contained in:
parent
23f2e99e99
commit
efa54a876a
1 changed files with 4 additions and 4 deletions
|
@ -580,9 +580,9 @@ impl<Number: ToCss + PartialEq> ToCss for Scale<Number> {
|
|||
where
|
||||
W: fmt::Write,
|
||||
{
|
||||
match self {
|
||||
&Scale::None => dest.write_str("none"),
|
||||
&Scale::Scale(ref x, ref y) => {
|
||||
match *self {
|
||||
Scale::None => dest.write_str("none"),
|
||||
Scale::Scale(ref x, ref y) => {
|
||||
x.to_css(dest)?;
|
||||
if x != y {
|
||||
dest.write_char(' ')?;
|
||||
|
@ -590,7 +590,7 @@ impl<Number: ToCss + PartialEq> ToCss for Scale<Number> {
|
|||
}
|
||||
Ok(())
|
||||
},
|
||||
&Scale::Scale3D(ref x, ref y, ref z) => {
|
||||
Scale::Scale3D(ref x, ref y, ref z) => {
|
||||
x.to_css(dest)?;
|
||||
dest.write_char(' ')?;
|
||||
y.to_css(dest)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue