mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Upgrade to rustc ba2f13ef0 2015-02-04
This commit is contained in:
parent
bc6882bdef
commit
d5dd1d658e
136 changed files with 1091 additions and 878 deletions
|
@ -22,7 +22,7 @@ pub fn serialize(iterator: &mut NodeIterator) -> String {
|
|||
let mut html = String::new();
|
||||
let mut open_elements: Vec<String> = vec!();
|
||||
let depth = iterator.depth;
|
||||
for node in *iterator {
|
||||
for node in iterator {
|
||||
while open_elements.len() > depth {
|
||||
html.push_str("</");
|
||||
html.push_str(open_elements.pop().unwrap().as_slice());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue