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:
		| @@ -81,14 +81,14 @@ mod tests { | ||||
|  | ||||
|     #[test] | ||||
|     fn test_host() { | ||||
|         let host = Header::parse_header([b"foo.com".to_vec()].as_slice()); | ||||
|         let host = Header::parse_header([b"foo.com".to_vec()].as_ref()); | ||||
|         assert_eq!(host, Some(Host { | ||||
|             hostname: "foo.com".to_string(), | ||||
|             port: None | ||||
|         })); | ||||
|  | ||||
|  | ||||
|         let host = Header::parse_header([b"foo.com:8080".to_vec()].as_slice()); | ||||
|         let host = Header::parse_header([b"foo.com:8080".to_vec()].as_ref()); | ||||
|         assert_eq!(host, Some(Host { | ||||
|             hostname: "foo.com".to_string(), | ||||
|             port: Some(8080) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user