From fb755838ca440b2a616689723381714e54fc2898 Mon Sep 17 00:00:00 2001 From: heyzoos Date: Sat, 20 May 2017 18:52:53 -0500 Subject: [PATCH] Return &Device instead of &Arc --- components/style/stylist.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/style/stylist.rs b/components/style/stylist.rs index 5ae2e1afa3f..2a69dcf433c 100644 --- a/components/style/stylist.rs +++ b/components/style/stylist.rs @@ -108,8 +108,6 @@ pub struct Stylist { element_map: PerPseudoElementSelectorMap, /// The rule tree, that stores the results of selector matching. - /// - /// FIXME(emilio): Not `pub`! rule_tree: RuleTree, /// The selector maps corresponding to a given pseudo-element @@ -1067,7 +1065,7 @@ impl Stylist { } /// Accessor for a shared reference to the device. - pub fn device(&self) -> &Arc { + pub fn device(&self) -> &Device { &self.device }