Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
44430:4bd35d25903f | 44431:b24721e7c5ee |
---|---|
124 }); | 124 }); |
125 | 125 |
126 py_class!(pub class MissingAncestors |py| { | 126 py_class!(pub class MissingAncestors |py| { |
127 data inner: RefCell<Box<CoreMissing<Index>>>; | 127 data inner: RefCell<Box<CoreMissing<Index>>>; |
128 | 128 |
129 def __new__(_cls, index: PyObject, bases: PyObject) -> PyResult<MissingAncestors> { | 129 def __new__( |
130 _cls, | |
131 index: PyObject, | |
132 bases: PyObject | |
133 ) | |
134 -> PyResult<MissingAncestors> { | |
130 let bases_vec: Vec<Revision> = rev_pyiter_collect(py, &bases)?; | 135 let bases_vec: Vec<Revision> = rev_pyiter_collect(py, &bases)?; |
131 let inner = CoreMissing::new(pyindex_to_graph(py, index)?, bases_vec); | 136 let inner = CoreMissing::new(pyindex_to_graph(py, index)?, bases_vec); |
132 MissingAncestors::create_instance(py, RefCell::new(Box::new(inner))) | 137 MissingAncestors::create_instance(py, RefCell::new(Box::new(inner))) |
133 } | 138 } |
134 | 139 |