aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/text/glyph.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx/text/glyph.rs')
-rw-r--r--components/gfx/text/glyph.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/gfx/text/glyph.rs b/components/gfx/text/glyph.rs
index 23e9664fd9f..ba60e67e9a1 100644
--- a/components/gfx/text/glyph.rs
+++ b/components/gfx/text/glyph.rs
@@ -359,7 +359,7 @@ impl<'a> DetailedGlyphStore {
detail_offset: 0, // unused
};
- let i = (&*self.detail_lookup).binary_search_index(&key)
+ let i = self.detail_lookup.binary_search_index(&key)
.expect("Invalid index not found in detailed glyph lookup table!");
assert!(i + (count as usize) <= self.detail_buffer.len());
@@ -379,7 +379,7 @@ impl<'a> DetailedGlyphStore {
detail_offset: 0, // unused
};
- let i = self.detail_lookup.as_slice().binary_search_index(&key)
+ let i = self.detail_lookup.binary_search_index(&key)
.expect("Invalid index not found in detailed glyph lookup table!");
assert!(i + (detail_offset as usize) < self.detail_buffer.len());