Have std::io::TempDir::new and new_in return IoResult

This allows using `try!()`

[breaking-change]

Fixes #16875
This commit is contained in:
Simon Sapin
2014-08-30 13:12:47 +01:00
parent 27e8d5bca7
commit a049fb98cd
6 changed files with 21 additions and 17 deletions

View File

@@ -1660,7 +1660,7 @@ mod tests {
#[test]
pub fn ratchet_test() {
let dpth = TempDir::new("test-ratchet").expect("missing test for ratchet");
let dpth = TempDir::new("test-ratchet").ok().expect("missing test for ratchet");
let pth = dpth.path().join("ratchet.json");
let mut m1 = MetricMap::new();