Remove Traceable from element.rs

This commit is contained in:
Manish Goregaokar 2014-09-29 04:00:55 +05:30
parent 4f362ab5e6
commit 96f6c2fd67
2 changed files with 5 additions and 6 deletions

View file

@ -390,7 +390,7 @@ pub struct LayoutElement<'le> {
impl<'le> LayoutElement<'le> {
pub fn style_attribute(&self) -> &'le Option<PropertyDeclarationBlock> {
let style: &Option<PropertyDeclarationBlock> = unsafe {
let style: &RefCell<Option<PropertyDeclarationBlock>> = self.element.style_attribute.deref();
let style: &RefCell<Option<PropertyDeclarationBlock>> = &self.element.style_attribute;
// cast to the direct reference to T placed on the head of RefCell<T>
mem::transmute(style)
};