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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user