Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/revlog/index.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 | 1da6995835b4 |
children | a3fa37bdb7ec |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/index.rs Thu Aug 01 11:27:20 2024 +0200 +++ b/rust/hg-core/src/revlog/index.rs Thu Sep 26 14:26:24 2024 +0200 @@ -7,14 +7,14 @@ use byteorder::{BigEndian, ByteOrder}; use bytes_cast::{unaligned, BytesCast}; -use super::{NodePrefix, REVIDX_KNOWN_FLAGS}; +use super::{NodePrefix, RevlogError, RevlogIndex, REVIDX_KNOWN_FLAGS}; use crate::errors::HgError; -use crate::node::{NODE_BYTES_LENGTH, NULL_NODE, STORED_NODE_ID_BYTES}; -use crate::revlog::node::Node; +use crate::revlog::node::{ + Node, NODE_BYTES_LENGTH, NULL_NODE, STORED_NODE_ID_BYTES, +}; use crate::revlog::{Revision, NULL_REVISION}; use crate::{ - dagops, BaseRevision, FastHashMap, Graph, GraphError, RevlogError, - RevlogIndex, UncheckedRevision, + dagops, BaseRevision, FastHashMap, Graph, GraphError, UncheckedRevision, }; pub const INDEX_ENTRY_SIZE: usize = 64; @@ -1825,7 +1825,7 @@ #[cfg(test)] mod tests { use super::*; - use crate::node::NULL_NODE; + use crate::NULL_NODE; #[cfg(test)] #[derive(Debug, Copy, Clone)]