Skip to content

Commit 6306545

Browse files
committed
handle warning; tag 0.0.13
1 parent e888ad9 commit 6306545

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

moon.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiye/cirru-parser",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"deps": {},
55
"readme": "README.md",
66
"repository": "https://github.com/Cirru/parser.mbt",

src/lib/primes.mbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ pub impl Hash for Cirru with hash_combine(self, hasher) {
3333
///|
3434
pub impl ToJson for Cirru with to_json(self : Cirru) -> Json {
3535
match self {
36-
Cirru::Leaf(s) => Json::String(s)
36+
Cirru::Leaf(s) => Json::string(s)
3737
Cirru::List(xs) => {
3838
let out = Array::new()
3939
for x in xs {
4040
out.push(x.to_json())
4141
}
42-
Json::Array(out)
42+
Json::array(out)
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)