equal
deleted
inserted
replaced
280 let mut m: Box<dyn Matcher + Sync> = Box::new(AlwaysMatcher); |
280 let mut m: Box<dyn Matcher + Sync> = Box::new(AlwaysMatcher); |
281 if !config.includes.is_empty() { |
281 if !config.includes.is_empty() { |
282 let (patterns, subwarnings) = parse_pattern_file_contents( |
282 let (patterns, subwarnings) = parse_pattern_file_contents( |
283 &config.includes, |
283 &config.includes, |
284 Path::new(""), |
284 Path::new(""), |
285 Some(b"relglob:".as_ref()), |
285 Some(b"glob:".as_ref()), |
286 false, |
286 false, |
287 )?; |
287 )?; |
288 warnings.extend(subwarnings.into_iter().map(From::from)); |
288 warnings.extend(subwarnings.into_iter().map(From::from)); |
289 m = Box::new(IncludeMatcher::new(patterns)?); |
289 m = Box::new(IncludeMatcher::new(patterns)?); |
290 } |
290 } |
291 if !config.excludes.is_empty() { |
291 if !config.excludes.is_empty() { |
292 let (patterns, subwarnings) = parse_pattern_file_contents( |
292 let (patterns, subwarnings) = parse_pattern_file_contents( |
293 &config.excludes, |
293 &config.excludes, |
294 Path::new(""), |
294 Path::new(""), |
295 Some(b"relglob:".as_ref()), |
295 Some(b"glob:".as_ref()), |
296 false, |
296 false, |
297 )?; |
297 )?; |
298 warnings.extend(subwarnings.into_iter().map(From::from)); |
298 warnings.extend(subwarnings.into_iter().map(From::from)); |
299 m = Box::new(DifferenceMatcher::new( |
299 m = Box::new(DifferenceMatcher::new( |
300 m, |
300 m, |