mirror of
https://github.com/servo/servo.git
synced 2025-06-28 11:03:39 +01:00
style: Rustfmt + build fix.
This commit is contained in:
parent
f429c28f23
commit
db2f6aa8ca
9 changed files with 33 additions and 28 deletions
|
@ -352,12 +352,14 @@ impl Polygon {
|
|||
})
|
||||
.unwrap_or_default();
|
||||
|
||||
let coordinates = input.parse_comma_separated(|i| {
|
||||
Ok(PolygonCoord(
|
||||
LengthPercentage::parse(context, i)?,
|
||||
LengthPercentage::parse(context, i)?,
|
||||
))
|
||||
})?.into();
|
||||
let coordinates = input
|
||||
.parse_comma_separated(|i| {
|
||||
Ok(PolygonCoord(
|
||||
LengthPercentage::parse(context, i)?,
|
||||
LengthPercentage::parse(context, i)?,
|
||||
))
|
||||
})?
|
||||
.into();
|
||||
|
||||
Ok(Polygon { fill, coordinates })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue