File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f883159cdf3a84967513dfb27f004499ac456a1a
2
+ refs/heads/master: 39ce095ebdfcfb35f93b386bcf5a6f0586f78611
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5
5
refs/heads/try: 4ca1f28cbf6a924013a43617b53c9fa0b97311a6
Original file line number Diff line number Diff line change @@ -304,11 +304,11 @@ impl Pattern {
304
304
&& is_sep(prev_char.unwrap_or_default('/')))
305
305
};
306
306
307
- for ti in range(i, self.tokens.len() ) {
308
- match self.tokens[ti] {
307
+ for (ti, token) in self.tokens.slice_from(i).iter().enumerate( ) {
308
+ match *token {
309
309
AnySequence => {
310
310
loop {
311
- match self.matches_from(prev_char, file, ti + 1, options) {
311
+ match self.matches_from(prev_char, file, i + ti + 1, options) {
312
312
SubPatternDoesntMatch => (), // keep trying
313
313
m => return m,
314
314
}
@@ -331,7 +331,7 @@ impl Pattern {
331
331
}
332
332
333
333
let (c, next) = file.slice_shift_char();
334
- let matches = match self.tokens[ti] {
334
+ let matches = match *token {
335
335
AnyChar => {
336
336
!require_literal(c)
337
337
}
You can’t perform that action at this time.
0 commit comments