rust/hg-cpython/src/dirstate/status.rs
changeset 47379 f6bb181c75f8
parent 47350 04d1f17f49e7
child 48260 269ff8978086
--- a/rust/hg-cpython/src/dirstate/status.rs	Wed Jun 02 18:14:44 2021 +0200
+++ b/rust/hg-cpython/src/dirstate/status.rs	Wed Jun 02 18:03:43 2021 +0200
@@ -211,12 +211,9 @@
                 .collect();
 
             let ignore_patterns = ignore_patterns?;
-            let mut all_warnings = vec![];
 
-            let (matcher, warnings) =
-                IncludeMatcher::new(ignore_patterns, &root_dir)
-                    .map_err(|e| handle_fallback(py, e.into()))?;
-            all_warnings.extend(warnings);
+            let matcher = IncludeMatcher::new(ignore_patterns)
+                .map_err(|e| handle_fallback(py, e.into()))?;
 
             let (status_res, warnings) = dmap
                 .status(
@@ -234,9 +231,7 @@
                 )
                 .map_err(|e| handle_fallback(py, e))?;
 
-            all_warnings.extend(warnings);
-
-            build_response(py, status_res, all_warnings)
+            build_response(py, status_res, warnings)
         }
         e => Err(PyErr::new::<ValueError, _>(
             py,