Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit 07c7597

Browse files
committed
Replacing try! with ?
1 parent 8c3ed02 commit 07c7597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl TempDir {
191191
let storage;
192192
let mut tmpdir = tmpdir.as_ref();
193193
if !tmpdir.is_absolute() {
194-
let cur_dir = try!(env::current_dir());
194+
let cur_dir = env::current_dir()?;
195195
storage = cur_dir.join(tmpdir);
196196
tmpdir = &storage;
197197
// return TempDir::new_in(&cur_dir.join(tmpdir), prefix);

0 commit comments

Comments
 (0)