Deprecate str::from_utf8_owned
Use `String::from_utf8` instead [breaking-change]
This commit is contained in:
parent
1704ebb798
commit
211f1caa29
28 changed files with 80 additions and 86 deletions
|
@ -460,7 +460,7 @@ fn build_index(krate: &clean::Crate, cache: &mut Cache) -> io::IoResult<String>
|
|||
|
||||
try!(write!(&mut w, "]}};"));
|
||||
|
||||
Ok(str::from_utf8(w.unwrap().as_slice()).unwrap().to_string())
|
||||
Ok(String::from_utf8(w.unwrap()).unwrap())
|
||||
}
|
||||
|
||||
fn write_shared(cx: &Context,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue