Mercurial > public > mercurial-scm > hg
diff rust/hg-cpython/src/conversion.rs @ 52178:bd8081e9fd62
rust: don't star export from the `revlog` module
This made a lot of the imports confusing because they didn't make sense
at the top level (so, outside of `revlog`), and they hide the more common
types when autocompleting.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 26 Sep 2024 14:26:24 +0200 |
parents | 5a7d5fd6808c |
children |
line wrap: on
line diff
--- a/rust/hg-cpython/src/conversion.rs Thu Aug 01 11:27:20 2024 +0200 +++ b/rust/hg-cpython/src/conversion.rs Thu Sep 26 14:26:24 2024 +0200 @@ -9,7 +9,7 @@ //! `hg-core` crate. From Python, this will be seen as `rustext.ancestor` use cpython::{ObjectProtocol, PyErr, PyObject, PyResult, Python}; -use hg::{Revision, RevlogIndex, UncheckedRevision}; +use hg::{revlog::RevlogIndex, Revision, UncheckedRevision}; use crate::{exceptions::GraphError, PyRevision};