Skip to content

Commit 1bf50a6

Browse files
feat: re-export IndexMap (#1154)
Please be sure to look over the pull request guidelines here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/CONTRIBUTING.md#submit-pr. # Please go through the following checklist - [ ] The PR title and commit messages adhere to guidelines here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/CONTRIBUTING.md. In particular `!` is used if and only if at least one breaking change has been introduced. - [ ] I have run the ci check script with `source scripts/run_ci_checks.sh`. - [ ] I have run the clean commit check script with `source scripts/check_commits.sh`, and the commit history is certified to follow clean commit guidelines as described here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/COMMIT_GUIDELINES.md - [ ] The latest changes from `main` have been incorporated to this PR by simple rebase if possible, if not, then conflicts are resolved appropriately. # Rationale for this change It's a little easier to construct the `SchemaAccessorImpl` if the alias type of the inner type is re-exported. # What changes are included in this PR? Making an alias reexport public # Are these changes tested? Not relevant.
2 parents b001699 + f8facfb commit 1bf50a6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

crates/proof-of-sql/src/base/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pub(crate) type IndexMap<K, V> =
2-
indexmap::IndexMap<K, V, core::hash::BuildHasherDefault<ahash::AHasher>>;
1+
/// Alias for the `IndexMap` with a hash builder of type `BuildHasherDefault<AHasher>`
2+
pub type IndexMap<K, V> = indexmap::IndexMap<K, V, core::hash::BuildHasherDefault<ahash::AHasher>>;
33
pub(crate) type IndexSet<T> = indexmap::IndexSet<T, core::hash::BuildHasherDefault<ahash::AHasher>>;
44

55
/// Create an [`IndexMap`][self::IndexMap] from a list of key-value pairs

crates/proof-of-sql/src/base/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub mod scalar;
2626
mod serialize;
2727
pub(crate) use serialize::{impl_serde_for_ark_serde_checked, impl_serde_for_ark_serde_unchecked};
2828
pub(crate) mod map;
29+
pub use map::IndexMap;
2930
pub(crate) mod slice_ops;
3031

3132
mod rayon_cfg;

0 commit comments

Comments
 (0)