fix(rustup): str.split and associated type changes

This commit is contained in:
Robin Gloster
2015-02-26 19:06:15 +01:00
parent 9998417fe8
commit 1b6e6a040f
4 changed files with 6 additions and 3 deletions

View File

@@ -645,7 +645,7 @@ mod tests {
let s = headers.to_string();
// hashmap's iterators have arbitrary order, so we must sort first
let mut pieces = s.split_str("\r\n").collect::<Vec<&str>>();
let mut pieces = s.split("\r\n").collect::<Vec<&str>>();
pieces.sort();
let s = pieces.into_iter().rev().collect::<Vec<&str>>().connect("\r\n");
assert_eq!(s, "Host: foo.bar\r\nContent-Length: 15\r\n");