style: Make MozLength / MaxLength a bit more clear and do a bit less work.

This commit is contained in:
Emilio Cobos Álvarez 2018-02-06 22:19:12 +01:00
parent 2cf0077be1
commit 45ba167030
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 21 additions and 6 deletions

View file

@ -888,6 +888,7 @@ pub enum MozLength {
impl MozLength {
/// Returns the `auto` value.
#[inline]
pub fn auto() -> Self {
MozLength::LengthOrPercentageOrAuto(LengthOrPercentageOrAuto::Auto)
}