File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " json"
3- version = " 0.8.2 "
3+ version = " 0.8.4 "
44authors = [" Maciej Hirsz <maciej.hirsz@gmail.com>" ]
55description = " JSON implementation in Rust"
66repository = " https://github.com/maciejhirsz/json-rust"
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ fn stringify_array_with_push() {
280280
281281#[ test]
282282fn 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]
You can’t perform that action at this time.
0 commit comments