diff options
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index 0cd75eae26e..512b82a8687 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -384,10 +384,7 @@ impl LineBreaker { -> Option<Fragment> where I: Iterator<Item=Fragment>, { - let mut result = match self.next_fragment(old_fragment_iter) { - None => return None, - Some(fragment) => fragment, - }; + let mut result = self.next_fragment(old_fragment_iter)?; loop { let candidate = match self.next_fragment(old_fragment_iter) { |