equal
deleted
inserted
replaced
845 ) -> StatusResult<( |
845 ) -> StatusResult<( |
846 (Vec<Cow<'c, HgPath>>, DirstateStatus<'c>), |
846 (Vec<Cow<'c, HgPath>>, DirstateStatus<'c>), |
847 Vec<PatternFileWarning>, |
847 Vec<PatternFileWarning>, |
848 )> { |
848 )> { |
849 // Needs to outlive `dir_ignore_fn` since it's captured. |
849 // Needs to outlive `dir_ignore_fn` since it's captured. |
850 let mut ignore_fn: IgnoreFnType; |
850 let ignore_fn: IgnoreFnType; |
851 |
851 |
852 // Only involve real ignore mechanism if we're listing unknowns or ignored. |
852 // Only involve real ignore mechanism if we're listing unknowns or ignored. |
853 let (dir_ignore_fn, warnings): (IgnoreFnType, _) = if options.list_ignored |
853 let (dir_ignore_fn, warnings): (IgnoreFnType, _) = if options.list_ignored |
854 || options.list_unknown |
854 || options.list_unknown |
855 { |
855 { |