Skip to content

Commit

Permalink
Fix Servo build.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Nov 8, 2018
1 parent 175e594 commit 2ea4af1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/layout/generated_content.rs
Expand Up @@ -366,16 +366,15 @@ impl<'a, 'b> ResolveGeneratedContentFragmentMutator<'a, 'b> {
if quotes.0.is_empty() {
return String::new();
}
let &(ref open_quote, ref close_quote) = if self.traversal.quote as usize >= quotes.0.len()
{
let pair = if self.traversal.quote as usize >= quotes.0.len() {
quotes.0.last().unwrap()
} else {
&quotes.0[self.traversal.quote as usize]
};
if close {
close_quote.to_string()
pair.closing.to_string()
} else {
open_quote.to_string()
pair.opening.to_string()
}
}
}
Expand Down

0 comments on commit 2ea4af1

Please sign in to comment.