diff rust/hg-cpython/src/ancestors.rs @ 44431: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 f98f0e3ddaa1
children 35ebe6f824be
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)))