aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-01-24 08:48:48 -0700
committerbors-servo <metajack+bors@gmail.com>2015-01-24 08:48:48 -0700
commitff8cbff81016c157373c1675f3eee69dd70ae544 (patch)
tree8227816edbd4dfae84a23954fd44ad4d7acb1da9 /components/script/dom
parent4c9d7ce5d071efe1ffac9f2fbb2b08bca2ca7158 (diff)
parent801949556d1a697fe93495cd2417707e54e49c7e (diff)
downloadservo-ff8cbff81016c157373c1675f3eee69dd70ae544.tar.gz
servo-ff8cbff81016c157373c1675f3eee69dd70ae544.zip
auto merge of #4713 : Ms2ger/servo/unsafe_get-const, r=jdm
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/js.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index e220f181a34..bc2d52a24bd 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -311,8 +311,8 @@ impl<T: Reflectable> JS<T> {
/// Returns an unsafe pointer to the interior of this object. This is the
/// only method that be safely accessed from layout. (The fact that this is
/// unsafe is what necessitates the layout wrappers.)
- pub unsafe fn unsafe_get(&self) -> *mut T {
- self.ptr as *mut T
+ pub unsafe fn unsafe_get(&self) -> *const T {
+ self.ptr
}
/// Store an unrooted value in this field. This is safe under the assumption that JS<T>