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