1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

toml: add conversion of ast inf and nan to Any (#12567)

This commit is contained in:
Larpon
2021-11-25 11:33:54 +01:00
committed by GitHub
parent fb3a793a27
commit 9a2c563735
3 changed files with 40 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ type DocOrAny = toml.Any | toml.Doc
pub fn json(doa DocOrAny) string {
match doa {
toml.Doc {
return any_to_json(doa.ast_to_any(doa.ast.table))
return any_to_json(toml.ast_to_any(doa.ast.table))
}
toml.Any {
return any_to_json(doa)