Return &Device instead of &Arc<Device>

This commit is contained in:
heyzoos 2017-05-20 18:52:53 -05:00
parent e3d9c7449a
commit fb755838ca

View file

@ -108,8 +108,6 @@ pub struct Stylist {
element_map: PerPseudoElementSelectorMap, element_map: PerPseudoElementSelectorMap,
/// The rule tree, that stores the results of selector matching. /// The rule tree, that stores the results of selector matching.
///
/// FIXME(emilio): Not `pub`!
rule_tree: RuleTree, rule_tree: RuleTree,
/// The selector maps corresponding to a given pseudo-element /// The selector maps corresponding to a given pseudo-element
@ -1067,7 +1065,7 @@ impl Stylist {
} }
/// Accessor for a shared reference to the device. /// Accessor for a shared reference to the device.
pub fn device(&self) -> &Arc<Device> { pub fn device(&self) -> &Device {
&self.device &self.device
} }