style: Use derive(Parse) for RepeatKeyword.

This commit is contained in:
Emilio Cobos Álvarez 2017-12-15 20:01:39 +01:00
parent 7036cb0077
commit 4abd1dc819
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -46,11 +46,13 @@ impl BackgroundSize {
} }
/// One of the keywords for `background-repeat`. /// One of the keywords for `background-repeat`.
define_css_keyword_enum! { RepeatKeyword: #[derive(Clone, Copy, Debug, Eq, MallocSizeOf, Parse, PartialEq, ToComputedValue, ToCss)]
"repeat" => Repeat, #[allow(missing_docs)]
"space" => Space, pub enum RepeatKeyword {
"round" => Round, Repeat,
"no-repeat" => NoRepeat Space,
Round,
NoRepeat,
} }
/// The specified value for the `background-repeat` property. /// The specified value for the `background-repeat` property.