aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/node.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-05-30 05:38:17 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-05-31 01:10:19 +0900
commit106627e6eb1bba39216cfc88dffe2b6f0f4b95e4 (patch)
tree1f802e3b62aced589b0424ee636af745f52490e4 /src/components/script/dom/node.rs
parente511c04935b1009d09ee7c11ad293fa404687909 (diff)
downloadservo-106627e6eb1bba39216cfc88dffe2b6f0f4b95e4.tar.gz
servo-106627e6eb1bba39216cfc88dffe2b6f0f4b95e4.zip
"JS<T>::from_raw" should accept "*T" instead of "*mut T"
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r--src/components/script/dom/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs
index 87a5229b2d5..1361a2e1aa4 100644
--- a/src/components/script/dom/node.rs
+++ b/src/components/script/dom/node.rs
@@ -646,7 +646,7 @@ pub fn from_untrusted_node_address(runtime: *mut JSRuntime, candidate: Untrusted
if object.is_null() {
fail!("Attempted to create a `JS<Node>` from an invalid pointer!")
}
- let boxed_node: *mut Node = utils::unwrap(object);
+ let boxed_node: *Node = utils::unwrap(object);
Temporary::new(JS::from_raw(boxed_node))
}
}