File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " rustc-serialize"
4
- version = " 0.3.6 "
4
+ version = " 0.3.7 "
5
5
authors = [" The Rust Project Developers" ]
6
6
license = " MIT/Apache-2.0"
7
7
readme = " README.md"
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ impl FromHex for str {
112
112
/// fn main () {
113
113
/// let hello_str = "Hello, World".as_bytes().to_hex();
114
114
/// println!("{}", hello_str);
115
- /// let bytes = hello_str.as_slice(). from_hex().unwrap();
115
+ /// let bytes = hello_str.from_hex().unwrap();
116
116
/// println!("{:?}", bytes);
117
117
/// let result_str = String::from_utf8(bytes).unwrap();
118
118
/// println!("{}", result_str);
Original file line number Diff line number Diff line change @@ -1994,7 +1994,10 @@ impl Decoder {
1994
1994
1995
1995
impl Decoder {
1996
1996
fn pop ( & mut self ) -> DecodeResult < Json > {
1997
- self . stack . pop ( ) . ok_or ( EOF )
1997
+ match self . stack . pop ( ) {
1998
+ Some ( s) => Ok ( s) ,
1999
+ None => Err ( EOF ) ,
2000
+ }
1998
2001
}
1999
2002
}
2000
2003
Original file line number Diff line number Diff line change 10
10
11
11
//! Support code for encoding and decoding types.
12
12
13
- #![ feature( core , convert) ]
13
+ #![ feature( convert) ]
14
14
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
15
15
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
16
16
html_root_url = "http://doc.rust-lang.org/rustc-serialize/" ) ]
17
17
#![ cfg_attr( test, deny( warnings) ) ]
18
- #![ cfg_attr( test, feature( test) ) ]
18
+ #![ cfg_attr( test, feature( test, std_misc ) ) ]
19
19
20
20
#[ cfg( test) ] extern crate test;
21
21
#[ cfg( test) ] extern crate rand;
You can’t perform that action at this time.
0 commit comments