aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-09-05 09:54:40 +0200
committerMs2ger <Ms2ger@gmail.com>2016-09-05 09:54:40 +0200
commit5ae29b02b652cf34fce9c813c241c395ca7dd823 (patch)
treea25a5b2b7fa2fe533a1fd1e1ea97cdad91662d2e /components/script/layout_wrapper.rs
parentc46003eb05cca0ea779fee73d0f6325c85e19357 (diff)
downloadservo-5ae29b02b652cf34fce9c813c241c395ca7dd823.tar.gz
servo-5ae29b02b652cf34fce9c813c241c395ca7dd823.zip
Stop using mem::transmute_copy.
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r--components/script/layout_wrapper.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index a7f0a5019f3..2f4ee4995ef 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -51,7 +51,7 @@ use selectors::matching::ElementFlags;
use selectors::parser::{AttrSelector, NamespaceConstraint};
use std::fmt;
use std::marker::PhantomData;
-use std::mem::{transmute, transmute_copy};
+use std::mem::transmute;
use std::sync::Arc;
use string_cache::{Atom, Namespace};
use style::attr::AttrValue;
@@ -119,8 +119,7 @@ impl<'ln> TNode for ServoLayoutNode<'ln> {
fn to_unsafe(&self) -> UnsafeNode {
unsafe {
- let ptr: usize = transmute_copy(self);
- (ptr, 0)
+ (self.node.unsafe_get() as usize, 0)
}
}