rust/hg-core/src/dagops.rs
changeset 51120 532e74ad3ff6
parent 50979 4c5f6e95df84
child 51259 ed6683d4cb29
--- a/rust/hg-core/src/dagops.rs	Mon Nov 06 11:02:18 2023 +0100
+++ b/rust/hg-core/src/dagops.rs	Mon Nov 06 11:06:08 2023 +0100
@@ -205,8 +205,7 @@
         graph: &impl Graph,
         revs: &[BaseRevision],
     ) -> Result<Vec<Revision>, GraphError> {
-        let iter_revs: Vec<_> =
-            revs.into_iter().cloned().map(Revision).collect();
+        let iter_revs: Vec<_> = revs.iter().cloned().map(Revision).collect();
         let heads = heads(graph, iter_revs.iter())?;
         let mut as_vec: Vec<Revision> = heads.iter().cloned().collect();
         as_vec.sort_unstable();