Fix Bug: Pass iterator value, not currently parsed value
This commit is contained in:
parent
3ed431ad5f
commit
8a546dfb26
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue