--- a/rust/hg-core/src/matchers.rs Wed Nov 02 15:24:39 2022 +0100
+++ b/rust/hg-core/src/matchers.rs Wed Nov 02 12:05:34 2022 +0100
@@ -838,7 +838,7 @@
pub fn get_ignore_matcher<'a>(
mut all_pattern_files: Vec<PathBuf>,
root_dir: &Path,
- inspect_pattern_bytes: &mut impl FnMut(&[u8]),
+ inspect_pattern_bytes: &mut impl FnMut(&Path, &[u8]),
) -> PatternResult<(IncludeMatcher<'a>, Vec<PatternFileWarning>)> {
let mut all_patterns = vec![];
let mut all_warnings = vec![];
@@ -871,7 +871,7 @@
pub fn get_ignore_function<'a>(
all_pattern_files: Vec<PathBuf>,
root_dir: &Path,
- inspect_pattern_bytes: &mut impl FnMut(&[u8]),
+ inspect_pattern_bytes: &mut impl FnMut(&Path, &[u8]),
) -> PatternResult<(IgnoreFnType<'a>, Vec<PatternFileWarning>)> {
let res =
get_ignore_matcher(all_pattern_files, root_dir, inspect_pattern_bytes);