File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use postgresql_archive::configuration::theseus;
2
2
use postgresql_archive:: extract;
3
3
use postgresql_archive:: { get_archive, get_version} ;
4
4
use semver:: VersionReq ;
5
- use std:: fs:: { create_dir_all , remove_dir_all} ;
5
+ use std:: fs:: remove_dir_all;
6
6
use test_log:: test;
7
7
8
8
#[ test( tokio:: test) ]
@@ -32,7 +32,6 @@ async fn test_get_archive_and_extract() -> anyhow::Result<()> {
32
32
assert ! ( version_req. matches( & archive_version) ) ;
33
33
34
34
let out_dir = tempfile:: tempdir ( ) ?. path ( ) . to_path_buf ( ) ;
35
- create_dir_all ( & out_dir) ?;
36
35
extract ( url, & archive, & out_dir) . await ?;
37
36
remove_dir_all ( & out_dir) ?;
38
37
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use postgresql_archive::configuration::theseus;
5
5
#[ cfg( feature = "blocking" ) ]
6
6
use postgresql_archive:: VersionReq ;
7
7
#[ cfg( feature = "blocking" ) ]
8
- use std:: fs:: { create_dir_all , remove_dir_all} ;
8
+ use std:: fs:: remove_dir_all;
9
9
#[ cfg( feature = "blocking" ) ]
10
10
use test_log:: test;
11
11
@@ -30,7 +30,6 @@ fn test_get_archive_and_extract() -> anyhow::Result<()> {
30
30
assert ! ( version_req. matches( & archive_version) ) ;
31
31
32
32
let out_dir = tempfile:: tempdir ( ) ?. path ( ) . to_path_buf ( ) ;
33
- create_dir_all ( & out_dir) ?;
34
33
extract ( url, & archive, & out_dir) ?;
35
34
remove_dir_all ( & out_dir) ?;
36
35
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use postgresql_archive::configuration::zonky;
2
2
use postgresql_archive:: extract;
3
3
use postgresql_archive:: { get_archive, get_version} ;
4
4
use semver:: VersionReq ;
5
- use std:: fs:: { create_dir_all , remove_dir_all} ;
5
+ use std:: fs:: remove_dir_all;
6
6
use test_log:: test;
7
7
8
8
#[ test( tokio:: test) ]
@@ -32,7 +32,6 @@ async fn test_get_archive_and_extract() -> anyhow::Result<()> {
32
32
assert ! ( version_req. matches( & archive_version) ) ;
33
33
34
34
let out_dir = tempfile:: tempdir ( ) ?. path ( ) . to_path_buf ( ) ;
35
- create_dir_all ( & out_dir) ?;
36
35
extract ( url, & archive, & out_dir) . await ?;
37
36
remove_dir_all ( & out_dir) ?;
38
37
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments