1
Fork 0

Deprecate str::from_utf8_owned

Use `String::from_utf8` instead

[breaking-change]
This commit is contained in:
Adolfo Ochagavía 2014-06-30 16:41:30 +02:00
parent 1704ebb798
commit 211f1caa29
28 changed files with 80 additions and 86 deletions

View file

@ -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,