Mercurial > hg-stable
diff rust/hg-cpython/src/cindex.rs @ 51274:96e05f1a99bd
rust-index: stop instantiating a C Index
The only missing piece was the `cache` to be returned from
`revlog.parse_index_v1_mixed`, and it really seems that it is
essentially repetition of the input, if `inline` is `True`.
Not worth a Rust implementation (C implementation is probably there
for historical reasons).
author | Georges Racinet <georges.racinet@octobus.net> |
---|---|
date | Sun, 29 Oct 2023 23:54:05 +0100 |
parents | 4c5f6e95df84 |
children |
line wrap: on
line diff
--- a/rust/hg-cpython/src/cindex.rs Mon Oct 30 21:28:30 2023 +0100 +++ b/rust/hg-cpython/src/cindex.rs Sun Oct 29 23:54:05 2023 +0100 @@ -9,7 +9,7 @@ //! //! Ideally, we should use an Index entirely implemented in Rust, //! but this will take some time to get there. - +#![allow(dead_code)] use cpython::{ exc::ImportError, exc::TypeError, ObjectProtocol, PyClone, PyErr, PyObject, PyResult, PyTuple, Python, PythonObject,