Patchwork D11678: rust: reformat Rust code

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

Comments

phabricator - Oct. 15, 2021, 10:18 a.m.
SimonSapin created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
    (cd rust && cargo +nightly fmt)

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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

CHANGE DETAILS




To: SimonSapin, #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,