Skip to content

Commit

Permalink
Derive Eq and PartialEq for CustomPropertiesMap
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Jun 29, 2017
1 parent b3e2b26 commit 0335c09
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions components/style/custom_properties.rs
Expand Up @@ -97,7 +97,7 @@ impl ToCss for ComputedValue {
/// DOM. CSSDeclarations expose property names as indexed properties, which
/// need to be stable. So we keep an array of property names which order is
/// determined on the order that they are added to the name-value map.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct CustomPropertiesMap {
/// Custom property name index.
index: Vec<Name>,
Expand Down Expand Up @@ -145,13 +145,6 @@ impl CustomPropertiesMap {
}
}

impl Eq for CustomPropertiesMap {}
impl PartialEq for CustomPropertiesMap {
fn eq(&self, other: &CustomPropertiesMap) -> bool {
self.values == other.values && self.index == other.index
}
}

impl ComputedValue {
fn empty() -> ComputedValue {
ComputedValue {
Expand Down

0 comments on commit 0335c09

Please sign in to comment.