diff -r 89cd0dd41e4d -r a43a6d4b3be6 rust/hg-cpython/src/revlog.rs --- a/rust/hg-cpython/src/revlog.rs Thu Feb 29 14:13:21 2024 -0800 +++ b/rust/hg-cpython/src/revlog.rs Tue Mar 05 15:07:04 2024 +0100 @@ -854,7 +854,7 @@ ) -> PyResult { let begin = begin.extract::(py)?; let end = end.extract::(py)?; - let index = &mut *self.index(py).borrow_mut(); + let index = &*self.index(py).borrow(); let begin = Self::check_revision(index, UncheckedRevision(begin - 1), py)?; let end = Self::check_revision(index, UncheckedRevision(end - 1), py)?;