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

login
register
mail settings
Submitter phabricator
Date March 5, 2020, 6:05 p.m.
Message ID <15a01abf8e9d849f9c5a830061870f13@localhost.localdomain>
Download mbox | patch
Permalink /patch/45517/
State Not Applicable
Headers show

Comments

phabricator - March 5, 2020, 6:05 p.m.
Closed by commit rHGdf162fca07e4: rust-format: cleanup ancestors.rs to make rustfmt happy (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8224?vs=20494&id=20524

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8224/new/

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)))