@@ -342,7 +342,7 @@ impl Iterator for Paths {
342
342
if let Some ( scope) = self . scope . take ( ) {
343
343
if !self . dir_patterns . is_empty ( ) {
344
344
// Shouldn't happen, but we're using -1 as a special index.
345
- assert ! ( self . dir_patterns. len( ) < !0 as usize ) ;
345
+ assert ! ( self . dir_patterns. len( ) < !0 ) ;
346
346
347
347
fill_todo ( & mut self . todo , & self . dir_patterns , 0 , & scope, self . options ) ;
348
348
}
@@ -360,7 +360,7 @@ impl Iterator for Paths {
360
360
361
361
// idx -1: was already checked by fill_todo, maybe path was '.' or
362
362
// '..' that we can't match here because of normalization.
363
- if idx == !0 as usize {
363
+ if idx == !0 {
364
364
if self . require_dir && !is_dir ( & path) {
365
365
continue ;
366
366
}
@@ -839,7 +839,7 @@ fn fill_todo(
839
839
// We know it's good, so don't make the iterator match this path
840
840
// against the pattern again. In particular, it can't match
841
841
// . or .. globs since these never show up as path components.
842
- todo. push ( Ok ( ( next_path, !0 as usize ) ) ) ;
842
+ todo. push ( Ok ( ( next_path, !0 ) ) ) ;
843
843
} else {
844
844
fill_todo ( todo, patterns, idx + 1 , & next_path, options) ;
845
845
}
0 commit comments