From 8fbd8e91ff9ef518287bb4f2a012d3f62332f1ca Mon Sep 17 00:00:00 2001 From: Philipp Keller Date: Tue, 6 Sep 2016 17:17:21 +0200 Subject: made it running with rust 1.2.0: the code for getcwd is now an exact copy of the implementation in std --- test/test_unistd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_unistd.rs') diff --git a/test/test_unistd.rs b/test/test_unistd.rs index 26746426..06a9cd99 100644 --- a/test/test_unistd.rs +++ b/test/test_unistd.rs @@ -131,7 +131,7 @@ fn test_getcwd() { } else { "/tmp/" }; - let mut tmp_dir = TempDir::new_in(base, "test_getcwd").expect("create temp dir").into_path(); + let mut tmp_dir = TempDir::new_in(base, "test_getcwd").unwrap().into_path(); assert!(chdir(tmp_dir.as_path()).is_ok()); assert_eq!(getcwd().unwrap(), tmp_dir); -- cgit v1.2.3