Fix JsonHeaderParser::visit_json()
This commit is contained in:
parent
500fb281a0
commit
7549db4ffc
1 changed files with 4 additions and 3 deletions
|
@ -74,11 +74,12 @@ fn visit_json(v: &Value) -> FileHeaderData {
|
|||
}
|
||||
},
|
||||
&Value::Object(ref btree) => {
|
||||
let btree = btree.clone();
|
||||
FileHeaderData::Map{
|
||||
keys: btree.clone().iter().map(|(k, v)|
|
||||
keys: btree.into_iter().map(|(k, v)|
|
||||
FileHeaderData::Key {
|
||||
name: k.clone(),
|
||||
value: Box::new(visit_json(v)),
|
||||
name: k,
|
||||
value: Box::new(visit_json(&v)),
|
||||
}
|
||||
).collect()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue