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:
@@ -52,10 +52,10 @@ impl HeaderFormat for Pragma {
|
||||
|
||||
#[test]
|
||||
fn test_parse_header() {
|
||||
let a: Pragma = Header::parse_header([b"no-cache".to_vec()].as_slice()).unwrap();
|
||||
let a: Pragma = Header::parse_header([b"no-cache".to_vec()].as_ref()).unwrap();
|
||||
let b = Pragma::NoCache;
|
||||
assert_eq!(a, b);
|
||||
let c: Pragma = Header::parse_header([b"FoObar".to_vec()].as_slice()).unwrap();
|
||||
let c: Pragma = Header::parse_header([b"FoObar".to_vec()].as_ref()).unwrap();
|
||||
let d = Pragma::Ext("FoObar".to_string());
|
||||
assert_eq!(c, d);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user