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

@@ -13,7 +13,7 @@ pub struct Language{
impl FromStr for Language {
type Err = ();
fn from_str(s: &str) -> Result<Language, ()> {
let mut i = s.split_str("-");
let mut i = s.split("-");
let p = i.next();
let s = i.next();
match (p, s) {