fix(rustup): rustc 1.0.0-nightly (123a754cb 2015-03-24)
* fix `extern crate` declaration for rustc-serialize * enable `into_cow` feature * replace as_slice() calls by as_ref and enable `convert` feature * use `core` feature in doc tests
This commit is contained in:
		| @@ -399,7 +399,7 @@ mod tests { | ||||
|         w.write_all(b"foo bar").unwrap(); | ||||
|         w.write_all(b"baz quux herp").unwrap(); | ||||
|         let buf = w.end().unwrap(); | ||||
|         let s = from_utf8(buf.as_slice()).unwrap(); | ||||
|         let s = from_utf8(buf.as_ref()).unwrap(); | ||||
|         assert_eq!(s, "7\r\nfoo bar\r\nD\r\nbaz quux herp\r\n0\r\n\r\n"); | ||||
|     } | ||||
|  | ||||
| @@ -411,7 +411,7 @@ mod tests { | ||||
|         assert_eq!(w.write(b"baz"), Ok(1)); | ||||
|  | ||||
|         let buf = w.end().unwrap(); | ||||
|         let s = from_utf8(buf.as_slice()).unwrap(); | ||||
|         let s = from_utf8(buf.as_ref()).unwrap(); | ||||
|         assert_eq!(s, "foo barb"); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user