Navigation Menu

Skip to content

Commit

Permalink
Replace explicit match with as_ref().(fixes #1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpy committed Mar 10, 2014
1 parent 4b061dc commit 5c5da8f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/main/css/matching.rs
Expand Up @@ -420,10 +420,7 @@ impl<'ln> MatchMethods for LayoutNode<'ln> {
applicable_declarations: &mut ApplicableDeclarations,
shareable: &mut bool) {
let style_attribute = self.with_element(|element| {
match *element.style_attribute() {
None => None,
Some(ref style_attribute) => Some(style_attribute)
}
element.style_attribute().as_ref()
});

applicable_declarations.normal_shareable =
Expand Down

10 comments on commit 5c5da8f

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging lpy/servo/issue1870 = 5c5da8f into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lpy/servo/issue1870 = 5c5da8f merged ok, testing candidate = 98ff387

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonSapin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors: retry

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging lpy/servo/issue1870 = 5c5da8f into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lpy/servo/issue1870 = 5c5da8f merged ok, testing candidate = b584f6f

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = b584f6f

Please sign in to comment.