# HG changeset patch # User Raphaël Gomès # Date 1583396805 -3600 # Node ID b24721e7c5ee90c31d12462109c75b0389a9df84 # Parent 4bd35d25903f0a699a46e60b16478da16a9788ed rust-format: cleanup ancestors.rs to make rustfmt happy Differential Revision: https://phab.mercurial-scm.org/D8224 diff -r 4bd35d25903f -r b24721e7c5ee 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>>; - def __new__(_cls, index: PyObject, bases: PyObject) -> PyResult { + def __new__( + _cls, + index: PyObject, + bases: PyObject + ) + -> PyResult { let bases_vec: Vec = 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)))