# HG changeset patch # User Raphaël Gomès # Date 2020-03-05 08:26:45 # Node ID b24721e7c5ee90c31d12462109c75b0389a9df84 # Parent 4bd35d25903f0a699a46e60b16478da16a9788ed rust-format: cleanup ancestors.rs to make rustfmt happy Differential Revision: https://phab.mercurial-scm.org/D8224 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 LazyAncestors |py| { 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)))