diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2014-09-18 16:29:46 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2014-09-20 13:00:55 -0700 |
commit | dc86e8365495acc87b983a290bb7277a37a5247f (patch) | |
tree | 36af9677f6a24d7163e4b41c2b8e53da4d15538c /components/layout/css/node_util.rs | |
parent | 2f46b9aedefae7938102f7a1ccc6c96044cf1bdb (diff) | |
download | servo-dc86e8365495acc87b983a290bb7277a37a5247f.tar.gz servo-dc86e8365495acc87b983a290bb7277a37a5247f.zip |
Eliminate warnings
Diffstat (limited to 'components/layout/css/node_util.rs')
-rw-r--r-- | components/layout/css/node_util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/css/node_util.rs b/components/layout/css/node_util.rs index 150995428ea..dcf1019440e 100644 --- a/components/layout/css/node_util.rs +++ b/components/layout/css/node_util.rs @@ -57,7 +57,7 @@ impl<'ln> NodeUtil for ThreadSafeLayoutNode<'ln> { /// Does this node have a computed style yet? fn have_css_select_results(&self) -> bool { let layout_data_ref = self.borrow_layout_data(); - layout_data_ref.get_ref().shared_data.style.is_some() + layout_data_ref.as_ref().unwrap().shared_data.style.is_some() } /// Get the description of how to account for recent style changes. @@ -73,7 +73,7 @@ impl<'ln> NodeUtil for ThreadSafeLayoutNode<'ln> { let layout_data_ref = self.borrow_layout_data(); layout_data_ref - .get_ref() + .as_ref().unwrap() .data .restyle_damage .unwrap_or(default) |