mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
gfx: Use ? on Option more often.
This commit is contained in:
parent
6c37edf602
commit
eb00aa4164
2 changed files with 2 additions and 9 deletions
|
@ -149,10 +149,7 @@ impl<'a> Iterator for CharacterSliceIterator<'a> {
|
|||
// inline(always) due to the inefficient rt failures messing up inline heuristics, I think.
|
||||
#[inline(always)]
|
||||
fn next(&mut self) -> Option<TextRunSlice<'a>> {
|
||||
let glyph_run = match self.glyph_run {
|
||||
None => return None,
|
||||
Some(glyph_run) => glyph_run,
|
||||
};
|
||||
let glyph_run = self.glyph_run?;
|
||||
|
||||
debug_assert!(!self.range.is_empty());
|
||||
let byte_start = self.range.begin();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue