Skip to content

Commit 7ad5f6d

Browse files
committed
fix: Adapt to changes on interface of json and yaml packages
1 parent 2d294bf commit 7ad5f6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/yaml2json.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import prantlf.cargs { Input, parse }
3-
import prantlf.json { StringifyOpts, stringify }
3+
import prantlf.json { StringifyOpts, stringify_opt }
44
import prantlf.yaml { parse_file, parse_text }
55

66
const version = '0.3.1'
@@ -52,7 +52,7 @@ fn convert() ! {
5252
parse_text(input)!
5353
}
5454

55-
mut dst := stringify(src, StringifyOpts{
55+
mut dst := stringify_opt(src, &StringifyOpts{
5656
pretty: opts.pretty
5757
trailing_commas: opts.trailing_commas
5858
single_quotes: opts.single_quotes

0 commit comments

Comments
 (0)