mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Fix warnings in gfx.
This commit is contained in:
parent
5e999c7d40
commit
e25322ce5b
6 changed files with 24 additions and 12 deletions
|
@ -345,7 +345,7 @@ impl<'a> DetailedGlyphStore {
|
|||
// FIXME: Is this right? --pcwalton
|
||||
// TODO: should fix this somewhere else
|
||||
if count == 0 {
|
||||
return self.detail_buffer.slice(0, 0);
|
||||
return &self.detail_buffer[0..0];
|
||||
}
|
||||
|
||||
assert!((count as uint) <= self.detail_buffer.len());
|
||||
|
@ -361,7 +361,7 @@ impl<'a> DetailedGlyphStore {
|
|||
|
||||
assert!(i + (count as uint) <= self.detail_buffer.len());
|
||||
// return a slice into the buffer
|
||||
self.detail_buffer.slice(i, i + count as uint)
|
||||
&self.detail_buffer[i .. i + count as uint]
|
||||
}
|
||||
|
||||
fn get_detailed_glyph_with_index(&'a self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue