Replace explicit match with as_ref().(fixes #1870)

This commit is contained in:
lpy 2014-03-10 16:22:56 +08:00
parent 4b061dc43d
commit 5c5da8f075

View file

@ -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 =