File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ jobserver = { version = "0.1.16", optional = true }
25
25
parallel = [" num_cpus" , " jobserver" ]
26
26
27
27
[dev-dependencies ]
28
- tempdir = " 0. 3"
28
+ tempfile = " 3"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use std::io::prelude::*;
8
8
use std:: path:: { Path , PathBuf } ;
9
9
10
10
use cc;
11
- use tempdir :: TempDir ;
11
+ use tempfile :: { Builder , TempDir } ;
12
12
13
13
pub struct Test {
14
14
pub td : TempDir ,
@@ -27,7 +27,7 @@ impl Test {
27
27
if gcc. ends_with ( "deps" ) {
28
28
gcc. pop ( ) ;
29
29
}
30
- let td = TempDir :: new_in ( & gcc , "gcc-test" ) . unwrap ( ) ;
30
+ let td = Builder :: new ( ) . prefix ( "gcc-test" ) . tempdir_in ( & gcc ) . unwrap ( ) ;
31
31
gcc. push ( format ! ( "gcc-shim{}" , env:: consts:: EXE_SUFFIX ) ) ;
32
32
Test {
33
33
td : td,
You can’t perform that action at this time.
0 commit comments