File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 23
23
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
24
24
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
25
25
html_root_url = "http://doc.rust-lang.org/glob/" ) ]
26
- #![ feature( convert) ]
27
26
#![ cfg_attr( all( test, windows) , feature( std_misc) ) ]
28
27
29
28
use std:: ascii:: AsciiExt ;
@@ -239,7 +238,7 @@ impl fmt::Display for GlobError {
239
238
}
240
239
241
240
fn is_dir ( p : & Path ) -> bool {
242
- fs:: metadata ( p) . map ( |m| m. is_dir ( ) ) == Ok ( true )
241
+ fs:: metadata ( p) . map ( |m| m. is_dir ( ) ) . unwrap_or ( false )
243
242
}
244
243
245
244
/// An alias for a glob iteration result.
Original file line number Diff line number Diff line change 10
10
11
11
// ignore-windows TempDir may cause IoError on windows: #10462
12
12
13
- #![ feature( convert) ]
14
13
#![ cfg_attr( test, deny( warnings) ) ]
15
14
16
15
extern crate glob;
You can’t perform that action at this time.
0 commit comments