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:
@@ -48,12 +48,12 @@ impl HeaderFormat for IfMatch {
|
||||
fn test_parse_header() {
|
||||
{
|
||||
let a: IfMatch = Header::parse_header(
|
||||
[b"*".to_vec()].as_slice()).unwrap();
|
||||
[b"*".to_vec()].as_ref()).unwrap();
|
||||
assert_eq!(a, IfMatch::Any);
|
||||
}
|
||||
{
|
||||
let a: IfMatch = Header::parse_header(
|
||||
[b"\"xyzzy\", \"r2d2xxxx\", \"c3piozzzz\"".to_vec()].as_slice()).unwrap();
|
||||
[b"\"xyzzy\", \"r2d2xxxx\", \"c3piozzzz\"".to_vec()].as_ref()).unwrap();
|
||||
let b = IfMatch::EntityTags(
|
||||
vec![EntityTag{weak:false, tag: "xyzzy".to_string()},
|
||||
EntityTag{weak:false, tag: "r2d2xxxx".to_string()},
|
||||
|
||||
Reference in New Issue
Block a user