mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
json: to_str() also for "null"
This commit is contained in:
parent
6f5a0a3b3b
commit
341e4151d6
@ -65,6 +65,7 @@ fn to_str(j: json) -> str {
|
|||||||
});
|
});
|
||||||
str::concat(["{ ", str::connect(parts, ", "), " }"])
|
str::concat(["{ ", str::connect(parts, ", "), " }"])
|
||||||
}
|
}
|
||||||
|
null { "null" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user