style: Be a bit more explicit about background-size.

We have a ton of ad-hoc `From` impls which seem overly generic, I think.
This commit is contained in:
Emilio Cobos Álvarez 2017-09-16 17:14:38 +02:00
parent 2ac1327e4b
commit 7e4338eed8
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 23 additions and 12 deletions

View file

@ -24,12 +24,3 @@ pub enum BackgroundSize<LengthOrPercentageOrAuto> {
#[animation(error)]
Contain,
}
impl<L> From<L> for BackgroundSize<L>
where L: Clone,
{
#[inline]
fn from(value: L) -> Self {
BackgroundSize::Explicit { width: value.clone(), height: value }
}
}