mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
geckolib: Fix some warnings (treated as error) new in Rust Nigthly
This commit is contained in:
parent
fbabcaf614
commit
35282042bc
6 changed files with 21 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue