diff rust/hg-core/src/matchers.rs @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 918ceb5a3d25
children ec7171748350
line wrap: on
line diff
--- a/rust/hg-core/src/matchers.rs	Mon Jul 22 16:49:38 2024 +0200
+++ b/rust/hg-core/src/matchers.rs	Tue Jul 23 10:02:46 2024 +0200
@@ -617,11 +617,7 @@
                 std::mem::swap(&mut m1, &mut m2);
             }
             m1.file_set().map(|m1_files| {
-                m1_files
-                    .iter()
-                    .filter(|&f| m2.matches(f))
-                    .cloned()
-                    .collect()
+                m1_files.iter().cloned().filter(|f| m2.matches(f)).collect()
             })
         } else {
             // without exact input file sets, we can't do an exact
@@ -714,7 +710,7 @@
         };
         if base_is_exact {
             new.files = base_files.map(|files| {
-                files.iter().filter(|&f| new.matches(f)).cloned().collect()
+                files.iter().cloned().filter(|f| new.matches(f)).collect()
             });
         }
         new