File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 2020 channel :
2121 - stable
2222 - nightly
23- - 1.63 .0 # MSRV of test dependencies
23+ - 1.71 .0 # MSRV of test dependencies
2424 os :
2525 - macos-13 # x86 MacOS
2626 - macos-15 # Arm MacOS
Original file line number Diff line number Diff line change @@ -13,6 +13,5 @@ categories = ["filesystem"]
1313rust-version = " 1.63.0"
1414
1515[dev-dependencies ]
16- # FIXME: This should be replaced by `tempfile`
17- tempdir = " 0.3"
16+ tempfile = " 3"
1817doc-comment = " 0.3"
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 ;
2322
2423#[ test]
2524fn main ( ) {
@@ -68,8 +67,8 @@ fn main() {
6867 . collect ( )
6968 }
7069
71- let root = TempDir :: new ( "glob-tests" ) ;
72- let root = root. ok ( ) . expect ( "Should have created a temp directory" ) ;
70+ let root = tempfile :: tempdir ( ) ;
71+ let root = root. 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