mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Fix Servo build.
This commit is contained in:
parent
175e594652
commit
2ea4af1171
1 changed files with 3 additions and 4 deletions
|
@ -366,16 +366,15 @@ impl<'a, 'b> ResolveGeneratedContentFragmentMutator<'a, 'b> {
|
||||||
if quotes.0.is_empty() {
|
if quotes.0.is_empty() {
|
||||||
return String::new();
|
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()
|
quotes.0.last().unwrap()
|
||||||
} else {
|
} else {
|
||||||
"es.0[self.traversal.quote as usize]
|
"es.0[self.traversal.quote as usize]
|
||||||
};
|
};
|
||||||
if close {
|
if close {
|
||||||
close_quote.to_string()
|
pair.closing.to_string()
|
||||||
} else {
|
} else {
|
||||||
open_quote.to_string()
|
pair.opening.to_string()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue