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) => {
|
&Value::Object(ref btree) => {
|
||||||
|
let btree = btree.clone();
|
||||||
FileHeaderData::Map{
|
FileHeaderData::Map{
|
||||||
keys: btree.clone().iter().map(|(k, v)|
|
keys: btree.into_iter().map(|(k, v)|
|
||||||
FileHeaderData::Key {
|
FileHeaderData::Key {
|
||||||
name: k.clone(),
|
name: k,
|
||||||
value: Box::new(visit_json(v)),
|
value: Box::new(visit_json(&v)),
|
||||||
}
|
}
|
||||||
).collect()
|
).collect()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue