[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
|
|
@ -427,7 +427,7 @@ impl<'a> SourceCollector<'a> {
|
|||
}
|
||||
}
|
||||
}
|
||||
let contents = str::from_utf8_owned(contents);
|
||||
let contents = str::from_utf8_owned(contents).unwrap();
|
||||
|
||||
// Create the intermediate directories
|
||||
let mut cur = self.dst.clone();
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ fn json_output(crate: clean::Crate, res: ~[plugins::PluginJson], dst: Path) {
|
|||
let mut encoder = json::Encoder::new(&mut w as &mut io::Writer);
|
||||
crate.encode(&mut encoder);
|
||||
}
|
||||
str::from_utf8_owned(w.unwrap())
|
||||
str::from_utf8_owned(w.unwrap()).unwrap()
|
||||
};
|
||||
let crate_json = match json::from_str(crate_json_str) {
|
||||
Ok(j) => j,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue