Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/examples/nodemap/index.rs @ 52308: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 | 4c5f6e95df84 |
children |
line wrap: on
line diff
--- a/rust/hg-core/examples/nodemap/index.rs Thu Aug 01 11:27:20 2024 +0200 +++ b/rust/hg-core/examples/nodemap/index.rs Thu Sep 26 14:26:24 2024 +0200 @@ -4,6 +4,7 @@ // GNU General Public License version 2 or any later version. //! Minimal `RevlogIndex`, readable from standard Mercurial file format +use hg::revlog::RevlogIndex; use hg::*; use memmap2::*; use std::fs::File;