Patchwork D8224: rust-format: cleanup ancestors.rs to make rustfmt happy

login
register
mail settings
Submitter phabricator
Date March 5, 2020, 8:33 a.m.
Message ID <differential-rev-PHID-DREV-vfs7nsrdmsvznvci5mpo-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/45490/
State Superseded
Headers show

Comments

phabricator - March 5, 2020, 8:33 a.m.
Alphare created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  rust/hg-cpython/src/ancestors.rs

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/rust/hg-cpython/src/ancestors.rs b/rust/hg-cpython/src/ancestors.rs
--- a/rust/hg-cpython/src/ancestors.rs
+++ b/rust/hg-cpython/src/ancestors.rs
@@ -126,7 +126,12 @@ 
 py_class!(pub class MissingAncestors |py| {
     data inner: RefCell<Box<CoreMissing<Index>>>;
 
-    def __new__(_cls, index: PyObject, bases: PyObject) -> PyResult<MissingAncestors> {
+    def __new__(
+        _cls,
+        index: PyObject,
+        bases: PyObject
+    )
+    -> PyResult<MissingAncestors> {
         let bases_vec: Vec<Revision> = rev_pyiter_collect(py, &bases)?;
         let inner = CoreMissing::new(pyindex_to_graph(py, index)?, bases_vec);
         MissingAncestors::create_instance(py, RefCell::new(Box::new(inner)))