geckolib: Fix some warnings (treated as error) new in Rust Nigthly

This commit is contained in:
Simon Sapin 2017-08-17 15:59:33 +02:00
parent fbabcaf614
commit 35282042bc
6 changed files with 21 additions and 21 deletions

View file

@ -90,7 +90,7 @@ impl<T> nsTArray<T> {
// this can leak
debug_assert!(len >= self.len() as u32);
self.ensure_capacity(len as usize);
let mut header = self.header_mut();
let header = self.header_mut();
header.mLength = len;
}
@ -99,7 +99,7 @@ impl<T> nsTArray<T> {
/// This will not leak since it only works on POD types (and thus doesn't assert)
pub unsafe fn set_len_pod(&mut self, len: u32) where T: Copy {
self.ensure_capacity(len as usize);
let mut header = unsafe { self.header_mut() };
let header = unsafe { self.header_mut() };
header.mLength = len;
}
}