mirror of
https://github.com/servo/servo.git
synced 2025-08-26 07:38:21 +01:00
Slice some fixed-size arrays.
This commit is contained in:
parent
af9a8bdc73
commit
121904dd89
3 changed files with 4 additions and 4 deletions
|
@ -557,7 +557,7 @@ impl<'a> GlyphStore {
|
|||
(true, _) => GlyphEntry::missing(1),
|
||||
(false, true) => GlyphEntry::simple(data.id, data.advance),
|
||||
(false, false) => {
|
||||
let glyph = [DetailedGlyph::new(data.id, data.advance, data.offset)];
|
||||
let glyph = &[DetailedGlyph::new(data.id, data.advance, data.offset)];
|
||||
self.detail_store.add_detailed_glyphs_for_entry(i, glyph);
|
||||
GlyphEntry::complex(data.cluster_start, data.ligature_start, 1)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue