Skip to content

Commit 3fe32a1

Browse files
committed
0.8.4 bugfix, 0.8.3 will be yanked
1 parent fabce46 commit 3fe32a1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "json"
3-
version = "0.8.2"
3+
version = "0.8.4"
44
authors = ["Maciej Hirsz <maciej.hirsz@gmail.com>"]
55
description = "JSON implementation in Rust"
66
repository = "https://github.com/maciejhirsz/json-rust"

src/codegen.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pub trait Generator {
5858
start = index + 1;
5959
}
6060
}
61+
self.write(string[start ..].as_bytes());
6162

6263
self.write_char(b'"');
6364
}

tests/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ fn stringify_array_with_push() {
280280

281281
#[test]
282282
fn stringify_escaped_characters() {
283-
assert_eq!(stringify("\r____\n___\t\u{8}\u{c}\\\""), r#""\r____\n___\t\b\f\\\"""#);
283+
assert_eq!(stringify("\r____\n___\t\u{8}\u{c}\\\"__"), r#""\r____\n___\t\b\f\\\"__""#);
284284
}
285285

286286
#[test]

0 commit comments

Comments
 (0)