File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,5 @@ categories = ["filesystem"]
1313rust-version = " 1.23.0"
1414
1515[dev-dependencies ]
16- # FIXME: This should be replaced by `tempfile`
17- tempdir = " 0.3"
1816doc-comment = " 0.3"
17+ tempfile = " 3.4.0"
Original file line number Diff line number Diff line change 1313#![ cfg_attr( test, deny( warnings) ) ]
1414
1515extern crate glob;
16- extern crate tempdir ;
16+ extern crate tempfile ;
1717
1818use glob:: { glob, glob_with} ;
1919use std:: env;
2020use std:: fs;
2121use std:: path:: PathBuf ;
22- use tempdir :: TempDir ;
22+ use tempfile :: TempDir ;
2323
2424#[ test]
2525fn main ( ) {
@@ -68,8 +68,7 @@ fn main() {
6868 . collect ( )
6969 }
7070
71- let root = TempDir :: new ( "glob-tests" ) ;
72- let root = root. ok ( ) . expect ( "Should have created a temp directory" ) ;
71+ let root = TempDir :: new ( ) . expect ( "Should have created a temp directory" ) ;
7372 assert ! ( env:: set_current_dir( root. path( ) ) . is_ok( ) ) ;
7473
7574 mk_file ( "aaa" , true ) ;
You can’t perform that action at this time.
0 commit comments