"JS<T>::from_raw" should accept "*T" instead of "*mut T"

This commit is contained in:
Tetsuharu OHZEKI 2014-05-30 05:38:17 +09:00
parent e511c04935
commit 106627e6eb
5 changed files with 13 additions and 13 deletions

View file

@ -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))
}
}