##// END OF EJS Templates
rust-format: cleanup ancestors.rs to make rustfmt happy...
Raphaël Gomès -
r44927:b24721e7 stable
parent child Browse files
Show More
@@ -126,7 +126,12 b' py_class!(pub class LazyAncestors |py| {'
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)))
General Comments 0
You need to be logged in to leave comments. Login now