style: Use more compact and ffi-friendly types for some svg props.

No functional change yet.

Differential Revision: https://phabricator.services.mozilla.com/D36805
This commit is contained in:
Emilio Cobos Álvarez 2019-07-05 22:19:42 +00:00
parent a0df9f76de
commit f0b5d02901
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
4 changed files with 16 additions and 14 deletions

View file

@ -447,17 +447,13 @@ where
}
}
impl<T> ToAnimatedZero for Box<[T]>
impl<T> ToAnimatedZero for crate::OwnedSlice<T>
where
T: ToAnimatedZero,
{
#[inline]
fn to_animated_zero(&self) -> Result<Self, ()> {
let v = self
.iter()
.map(|v| v.to_animated_zero())
.collect::<Result<Vec<_>, _>>()?;
Ok(v.into_boxed_slice())
self.iter().map(|v| v.to_animated_zero()).collect()
}
}