Fix Bug: Pass iterator value, not currently parsed value

This commit is contained in:
Matthias Beyer 2015-11-27 16:52:09 +01:00
parent 3ed431ad5f
commit 8a546dfb26

View file

@ -59,7 +59,7 @@ fn visit_json(v: &Value) -> FileHeaderData {
&Value::String(ref s) => FileHeaderData::Text(s.clone()),
&Value::Array(ref vec) => {
FileHeaderData::Array {
values: Box::new(vec.clone().into_iter().map(|i| visit_json(v)).collect())
values: Box::new(vec.clone().into_iter().map(|i| visit_json(&i)).collect())
}
},
&Value::Object(ref btree) => {