diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-01-12 11:04:24 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-01-12 12:08:47 +0100 |
commit | 335ca47361dc6837f8ef72fb3f738b1c1005499b (patch) | |
tree | b5efbd2ba45506ab699956433c2d052630fa2c5c /components/selectors/parser.rs | |
parent | 9a1f20f1e8376e3876c1d74aaa9d8e14ed9bccb5 (diff) | |
download | servo-335ca47361dc6837f8ef72fb3f738b1c1005499b.tar.gz servo-335ca47361dc6837f8ef72fb3f738b1c1005499b.zip |
style: Use Default for ExtraStyleData instead of Option.
Diffstat (limited to 'components/selectors/parser.rs')
-rw-r--r-- | components/selectors/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs index dead7875d0f..99b73353abf 100644 --- a/components/selectors/parser.rs +++ b/components/selectors/parser.rs @@ -84,7 +84,7 @@ macro_rules! with_all_bounds { /// are parameterized on SelectorImpl. See /// <https://github.com/rust-lang/rust/issues/26925> pub trait SelectorImpl: Clone + Sized + 'static { - type ExtraMatchingData: Sized + 'static; + type ExtraMatchingData: Sized + Default + 'static; type AttrValue: $($InSelector)*; type Identifier: $($InSelector)* + PrecomputedHash; type ClassName: $($InSelector)* + PrecomputedHash; |