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

Commit e653f33

Browse files
committed
Update to rust master
1 parent 686165c commit e653f33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/smoke.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn test_rm_tempdir() {
6161
t!(TempDir::new("test_rm_tempdir"))
6262
};
6363
// FIXME(#16640) `: TempDir` annotation shouldn't be necessary
64-
let tmp: TempDir = thread::scoped(f).join();
64+
let tmp: TempDir = thread::spawn(f).join().unwrap();
6565
path = tmp.path().to_path_buf();
6666
assert!(path.exists());
6767
}
@@ -105,7 +105,7 @@ fn test_rm_tempdir_close() {
105105
t!(TempDir::new("test_rm_tempdir"))
106106
};
107107
// FIXME(#16640) `: TempDir` annotation shouldn't be necessary
108-
let tmp: TempDir = thread::scoped(f).join();
108+
let tmp: TempDir = thread::spawn(f).join().unwrap();
109109
path = tmp.path().to_path_buf();
110110
assert!(path.exists());
111111
t!(tmp.close());

0 commit comments

Comments
 (0)