Show More
@@ -581,14 +581,14 b' impl SubInclude {' | |||
|
581 | 581 | /// phase. |
|
582 | 582 | pub fn filter_subincludes( |
|
583 | 583 | ignore_patterns: Vec<IgnorePattern>, |
|
584 |
) -> Result<(Vec< |
|
|
584 | ) -> Result<(Vec<SubInclude>, Vec<IgnorePattern>), HgPathError> { | |
|
585 | 585 | let mut subincludes = vec![]; |
|
586 | 586 | let mut others = vec![]; |
|
587 | 587 | |
|
588 | 588 | for pattern in ignore_patterns { |
|
589 | 589 | if let PatternSyntax::ExpandedSubInclude(sub_include) = pattern.syntax |
|
590 | 590 | { |
|
591 | subincludes.push(sub_include); | |
|
591 | subincludes.push(*sub_include); | |
|
592 | 592 | } else { |
|
593 | 593 | others.push(pattern) |
|
594 | 594 | } |
General Comments 0
You need to be logged in to leave comments.
Login now