We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99da6be commit 4d8426bCopy full SHA for 4d8426b
src/lib.rs
@@ -383,13 +383,13 @@ impl Iterator for Paths {
383
// advanced to the next pattern for this path
384
idx = next + 1;
385
}
386
- } else if next != self.dir_patterns.len() - 1 {
387
- // advanced to the next pattern for this path
388
- idx = next + 1;
389
- } else {
+ } else if next == self.dir_patterns.len() - 1 {
390
// not a directory and it's the last pattern, meaning no
391
// match
392
continue;
+ } else {
+ // advanced to the next pattern for this path
+ idx = next + 1;
393
394
395
0 commit comments