[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior

This commit is contained in:
Simon Sapin 2013-12-23 17:45:01 +01:00
parent b8c4149293
commit 05ae134ace
33 changed files with 65 additions and 91 deletions

View file

@ -59,7 +59,7 @@ impl Code {
}
reverse(result);
str::from_utf8_owned(result)
str::from_utf8_owned(result).unwrap()
}
}

View file

@ -187,7 +187,7 @@ fn to_utf8(raw_sol: &List<u64>) -> ~str {
if m & 1 << i != 0 {sol[i] = '0' as u8 + id;}
}
}
std::str::from_utf8_owned(sol)
std::str::from_utf8_owned(sol).unwrap()
}
// Prints a solution in ~str form.