aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-20 14:43:29 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-20 14:45:47 +0100
commit6d30ec77c89d157819a7c8e99d34b6aabf5bc5c6 (patch)
tree4c8fa052611da7fa05f107fb206d79aa17be1ecb /components/script/dom/bindings/js.rs
parent9c863a6bd42e1cbcdf2c54299145d266534f25c0 (diff)
downloadservo-6d30ec77c89d157819a7c8e99d34b6aabf5bc5c6.tar.gz
servo-6d30ec77c89d157819a7c8e99d34b6aabf5bc5c6.zip
Replace uint/int by usize/isize in various places.
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-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 a842583cecb..622368af6d2 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -585,7 +585,7 @@ pub trait TemporaryPushable<T> {
/// Push a new value onto this container.
fn push_unrooted(&mut self, val: &T);
/// Insert a new value into this container.
- fn insert_unrooted(&mut self, index: uint, val: &T);
+ fn insert_unrooted(&mut self, index: usize, val: &T);
}
impl<T: Assignable<U>, U: Reflectable> TemporaryPushable<T> for Vec<JS<U>> {
@@ -593,7 +593,7 @@ impl<T: Assignable<U>, U: Reflectable> TemporaryPushable<T> for Vec<JS<U>> {
self.push(unsafe { val.get_js() });
}
- fn insert_unrooted(&mut self, index: uint, val: &T) {
+ fn insert_unrooted(&mut self, index: usize, val: &T) {
self.insert(index, unsafe { val.get_js() });
}
}