Fixing test json::List -> json::Array
This commit is contained in:
parent
d0519edd21
commit
c7872d82fc
|
@ -34,7 +34,7 @@ fn to_json(toml: Value) -> json::Json {
|
||||||
Some(&Table(..)) => true,
|
Some(&Table(..)) => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
};
|
};
|
||||||
let json = json::List(arr.into_iter().map(to_json).collect());
|
let json = json::Array(arr.into_iter().map(to_json).collect());
|
||||||
if is_table {json} else {doit("array", json)}
|
if is_table {json} else {doit("array", json)}
|
||||||
}
|
}
|
||||||
Table(table) => json::Object(table.into_iter().map(|(k, v)| {
|
Table(table) => json::Object(table.into_iter().map(|(k, v)| {
|
||||||
|
|
Loading…
Reference in a new issue