Show More
@@ -31,6 +31,8 b' use std::iter::FromIterator;' | |||
|
31 | 31 | use std::ops::Deref; |
|
32 | 32 | use std::path::{Path, PathBuf}; |
|
33 | 33 | |
|
34 | use micro_timer::timed; | |
|
35 | ||
|
34 | 36 | #[derive(Debug, PartialEq)] |
|
35 | 37 | pub enum VisitChildrenSet<'a> { |
|
36 | 38 | /// Don't visit anything |
@@ -322,6 +324,7 b" impl<'a> Matcher for IncludeMatcher<'a> " | |||
|
322 | 324 | /// |
|
323 | 325 | /// This can fail when the pattern is invalid or not supported by the |
|
324 | 326 | /// underlying engine `Re2`, for instance anything with back-references. |
|
327 | #[timed] | |
|
325 | 328 | fn re_matcher( |
|
326 | 329 | pattern: &[u8], |
|
327 | 330 | ) -> PatternResult<impl Fn(&HgPath) -> bool + Sync> { |
@@ -337,6 +340,7 b' fn re_matcher(' | |||
|
337 | 340 | /// This can fail when the pattern is invalid or not supported by the |
|
338 | 341 | /// underlying engine (the `regex` crate), for instance anything with |
|
339 | 342 | /// back-references. |
|
343 | #[timed] | |
|
340 | 344 | fn re_matcher( |
|
341 | 345 | pattern: &[u8], |
|
342 | 346 | ) -> PatternResult<impl Fn(&HgPath) -> bool + Sync> { |
General Comments 0
You need to be logged in to leave comments.
Login now