Skip to content

Commit 7a1493a

Browse files
committed
Fix infinite loop bug.
1 parent 7ea10ff commit 7a1493a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/gfx/text/glyph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ impl<'self> Iterator<(uint, GlyphInfo<'self>)> for GlyphIterator<'self> {
691691
// Would use 'match' here but it borrows contents in a way that
692692
// interferes with mutation.
693693
if self.glyph_range.is_some() {
694-
match self.glyph_range.unwrap().next() {
694+
match self.glyph_range.get_mut_ref().next() {
695695
Some(j) => Some((self.char_index,
696696
DetailGlyphInfo(self.store, self.char_index, j as u16))),
697697
None => {

0 commit comments

Comments
 (0)