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:
		| @@ -49,10 +49,10 @@ mod tests { | ||||
|     fn test_vary() { | ||||
|         let mut vary: Option<Vary>; | ||||
|  | ||||
|         vary = Header::parse_header([b"*".to_vec()].as_slice()); | ||||
|         vary = Header::parse_header([b"*".to_vec()].as_ref()); | ||||
|         assert_eq!(vary, Some(Vary::Any)); | ||||
|  | ||||
|         vary = Header::parse_header([b"etag,cookie,allow".to_vec()].as_slice()); | ||||
|         vary = Header::parse_header([b"etag,cookie,allow".to_vec()].as_ref()); | ||||
|         assert_eq!(vary, Some(Vary::Headers(vec!["eTag".parse().unwrap(), | ||||
|                                                  "cookIE".parse().unwrap(), | ||||
|                                                  "AlLOw".parse().unwrap(),]))); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user