changeset 44199:b24721e7c5ee stable

rust-format: cleanup ancestors.rs to make rustfmt happy Differential Revision: https://phab.mercurial-scm.org/D8224
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 05 Mar 2020 09:26:45 +0100
parents 4bd35d25903f
children dca4b5da417d 8cdd0b9629e3
files rust/hg-cpython/src/ancestors.rs
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-cpython/src/ancestors.rs	Thu Mar 05 15:47:22 2020 +0100
+++ b/rust/hg-cpython/src/ancestors.rs	Thu Mar 05 09:26:45 2020 +0100
@@ -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)))