rust-format: cleanup ancestors.rs to make rustfmt happy stable
authorRaphaël Gomès <rgomes@octobus.net>
Thu, 05 Mar 2020 09:26:45 +0100
branchstable
changeset 44199 b24721e7c5ee
parent 44198 4bd35d25903f
child 44200 dca4b5da417d
child 44461 8cdd0b9629e3
rust-format: cleanup ancestors.rs to make rustfmt happy Differential Revision: https://phab.mercurial-scm.org/D8224
rust/hg-cpython/src/ancestors.rs
--- 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)))