Permalink
Browse files

Fix Servo build.

  • Loading branch information...
emilio committed Nov 7, 2018
1 parent 175e594 commit 2ea4af1171e50970760f9644af883fb50e192b02
Showing with 3 additions and 4 deletions.
  1. +3 −4 components/layout/generated_content.rs
@@ -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()
}
}
}

0 comments on commit 2ea4af1

Please sign in to comment.