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

login
register
mail settings
Submitter phabricator
Date Oct. 15, 2021, 5:36 a.m.
Message ID <differential-rev-PHID-DREV-clokhigd6suwrw46ttbh-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49994/
State Superseded
Headers show

Comments

phabricator - Oct. 15, 2021, 5:36 a.m.
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




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

Patch

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,