[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior
This commit is contained in:
parent
b8c4149293
commit
05ae134ace
33 changed files with 65 additions and 91 deletions
|
|
@ -59,7 +59,7 @@ impl Code {
|
|||
}
|
||||
|
||||
reverse(result);
|
||||
str::from_utf8_owned(result)
|
||||
str::from_utf8_owned(result).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue