D11670: rhg: fix formatting error reported by test-check-format-rust.t

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Oct 15 05:36:08 UTC 2021


martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11670

AFFECTED FILES
  rust/hg-core/src/operations/cat.rs

CHANGE DETAILS

diff --git a/rust/hg-core/src/operations/cat.rs b/rust/hg-core/src/operations/cat.rs
--- a/rust/hg-core/src/operations/cat.rs
+++ b/rust/hg-core/src/operations/cat.rs
@@ -104,10 +104,8 @@
         bytes.extend(file_log.data_for_node(file_node)?.data()?);
     }
 
-    let missing: Vec<HgPathBuf> = missing
-        .iter()
-        .map(|file| (*file).to_owned())
-        .collect();
+    let missing: Vec<HgPathBuf> =
+        missing.iter().map(|file| (*file).to_owned()).collect();
     Ok(CatOutput {
         found_any,
         concatenated: bytes,



To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel


More information about the Mercurial-devel mailing list