mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Replace explicit match with as_ref().(fixes #1870)
This commit is contained in:
parent
4b061dc43d
commit
5c5da8f075
1 changed files with 1 additions and 4 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue