File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ impl Iterator<Path> for GlobIterator {
131
131
None => {
132
132
// FIXME (#9639): How do we handle non-utf8 filenames? Ignore them for now
133
133
// Ideally we'd still match them against a *
134
- loop ;
134
+ continue ;
135
135
}
136
136
Some(x) => x
137
137
}, self.options) {
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ impl GenericPath for Path {
253
253
loop {
254
254
match ( ita. next ( ) , itb. next ( ) ) {
255
255
( None , _) => break ,
256
- ( Some ( a) , Some ( b) ) if a == b => { loop } ,
256
+ ( Some ( a) , Some ( b) ) if a == b => { continue } ,
257
257
( Some ( a) , _) if a == bytes ! ( ".." ) => {
258
258
// if ita contains only .. components, it's an ancestor
259
259
return ita. all ( |x| x == bytes ! ( ".." ) ) ;
Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ impl GenericPath for Path {
548
548
loop {
549
549
match ( ita. next ( ) , itb. next ( ) ) {
550
550
( None , _) => break ,
551
- ( Some ( a) , Some ( b) ) if a == b => { loop } ,
551
+ ( Some ( a) , Some ( b) ) if a == b => { continue } ,
552
552
( Some ( a) , _) if a == ".." => {
553
553
// if ita contains only .. components, it's an ancestor
554
554
return ita. all ( |x| x == ".." ) ;
You can’t perform that action at this time.
0 commit comments