mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Format style component.
This commit is contained in:
parent
31fc6cd565
commit
8dab4d659a
120 changed files with 2207 additions and 1417 deletions
|
@ -70,7 +70,8 @@ impl Parse for SingleValue {
|
|||
match *input.next()? {
|
||||
Token::Number {
|
||||
int_value: Some(v), ..
|
||||
} if v >= 0 =>
|
||||
}
|
||||
if v >= 0 =>
|
||||
{
|
||||
Ok(SingleValue(v as u32))
|
||||
},
|
||||
|
@ -102,7 +103,8 @@ impl Parse for PairValues {
|
|||
let first = match *input.next()? {
|
||||
Token::Number {
|
||||
int_value: Some(a), ..
|
||||
} if a >= 0 =>
|
||||
}
|
||||
if a >= 0 =>
|
||||
{
|
||||
a as u32
|
||||
},
|
||||
|
@ -112,7 +114,8 @@ impl Parse for PairValues {
|
|||
match input.next() {
|
||||
Ok(&Token::Number {
|
||||
int_value: Some(b), ..
|
||||
}) if b >= 0 =>
|
||||
})
|
||||
if b >= 0 =>
|
||||
{
|
||||
Ok(PairValues(first, Some(b as u32)))
|
||||
},
|
||||
|
@ -154,7 +157,8 @@ impl Parse for VectorValues {
|
|||
match input.next() {
|
||||
Ok(&Token::Number {
|
||||
int_value: Some(a), ..
|
||||
}) if a >= 0 =>
|
||||
})
|
||||
if a >= 0 =>
|
||||
{
|
||||
vec.push(a as u32);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue