mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Rustfmt + build fix.
This commit is contained in:
parent
f429c28f23
commit
db2f6aa8ca
9 changed files with 33 additions and 28 deletions
|
@ -298,7 +298,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<T> ToAnimatedValue for Box<[T]>
|
||||
where
|
||||
T: ToAnimatedValue,
|
||||
|
@ -307,8 +306,7 @@ where
|
|||
|
||||
#[inline]
|
||||
fn to_animated_value(self) -> Self::AnimatedValue {
|
||||
self
|
||||
.into_vec()
|
||||
self.into_vec()
|
||||
.into_iter()
|
||||
.map(T::to_animated_value)
|
||||
.collect::<Vec<_>>()
|
||||
|
|
|
@ -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 })
|
||||
}
|
||||
|
|
|
@ -33,8 +33,7 @@ use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss};
|
|||
pub struct SVGPathData(
|
||||
// TODO(emilio): Should probably measure this somehow only from the
|
||||
// specified values.
|
||||
#[ignore_malloc_size_of = "Arc"]
|
||||
pub crate::ArcSlice<PathCommand>
|
||||
#[ignore_malloc_size_of = "Arc"] pub crate::ArcSlice<PathCommand>,
|
||||
);
|
||||
|
||||
impl SVGPathData {
|
||||
|
@ -103,7 +102,9 @@ impl Parse for SVGPathData {
|
|||
}
|
||||
}
|
||||
|
||||
Ok(SVGPathData(crate::ArcSlice::from_iter(path_parser.path.into_iter())))
|
||||
Ok(SVGPathData(crate::ArcSlice::from_iter(
|
||||
path_parser.path.into_iter(),
|
||||
)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue