branch | stable |
changeset 51464 | 68ed56baabf5 |
parent 51463 | a43a6d4b3be6 |
child 51962 | fb4d49c52c06 |
--- a/rust/hg-cpython/src/revlog.rs Tue Mar 05 15:07:04 2024 +0100 +++ b/rust/hg-cpython/src/revlog.rs Tue Mar 05 15:07:47 2024 +0100 @@ -873,7 +873,7 @@ py: Python, filtered_revs: &PyObject, ) -> PyResult<PyObject> { - let index = &mut *self.index(py).borrow_mut(); + let index = &*self.index(py).borrow(); let filtered_revs = rev_pyiter_collect(py, filtered_revs, index)?; if let Some(new_heads) = index