diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-01-22 15:26:56 -0500 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-24 11:40:21 +0100 |
commit | d2f0aac5ce6fc126c750e59c1a9c094ab9dc03e0 (patch) | |
tree | 4975ba0227c3a7e12055c9e5c744ea362085e63f /components/script/dom/node.rs | |
parent | 1b496d80dec4f202e0f318ee60ac156ad74256ff (diff) | |
download | servo-d2f0aac5ce6fc126c750e59c1a9c094ab9dc03e0.tar.gz servo-d2f0aac5ce6fc126c750e59c1a9c094ab9dc03e0.zip |
Make UntrustedNodeAddress a newtype.
This will allow us to make it Send after the Rust upgrade.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 2d86c48c2d6..5433e666180 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -886,7 +886,7 @@ impl<'a> NodeHelpers<'a> for JSRef<'a, Node> { pub fn from_untrusted_node_address(runtime: *mut JSRuntime, candidate: UntrustedNodeAddress) -> Temporary<Node> { unsafe { - let candidate: uintptr_t = mem::transmute(candidate); + let candidate: uintptr_t = mem::transmute(candidate.0); let object: *mut JSObject = jsfriendapi::bindgen::JS_GetAddressableObject(runtime, candidate); if object.is_null() { |