De-~[] Mem{Reader,Writer}
This commit is contained in:
parent
d0e60b72ee
commit
49a8081095
21 changed files with 66 additions and 65 deletions
|
|
@ -34,7 +34,7 @@ pub fn highlight(src: &str, class: Option<&str>) -> ~str {
|
|||
lexer::new_string_reader(&sess.span_diagnostic, fm),
|
||||
class,
|
||||
&mut out).unwrap();
|
||||
str::from_utf8_lossy(out.unwrap()).into_owned()
|
||||
str::from_utf8_lossy(out.unwrap().as_slice()).into_owned()
|
||||
}
|
||||
|
||||
/// Exhausts the `lexer` writing the output into `out`.
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ pub fn run(mut krate: clean::Crate, dst: Path) -> io::IoResult<()> {
|
|||
}
|
||||
try!(write!(&mut w, "\\};"));
|
||||
|
||||
str::from_utf8_owned(w.unwrap()).unwrap()
|
||||
str::from_utf8(w.unwrap().as_slice()).unwrap().to_owned()
|
||||
};
|
||||
|
||||
// Write out the shared files. Note that these are shared among all rustdoc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue