diff options
author | Aramis Razzaghipour <[email protected]> | 2021-01-15 00:11:07 +0000 |
---|---|---|
committer | Aramis Razzaghipour <[email protected]> | 2021-01-15 00:14:04 +0000 |
commit | 9b5ba090db2c1f913d3f127573ac60c5eb2601bb (patch) | |
tree | 400f99b812f2133e2a345f23555a98754827b661 /lib/arena/src | |
parent | f88f3d688507508ae9528101e13e1c62902467a3 (diff) |
Remove map module from la-arena public API
It’s unlikely that more items will be added to the module,
so it’s simpler for users if `ArenaMap` is re-exported
and the module made private.
Diffstat (limited to 'lib/arena/src')
-rw-r--r-- | lib/arena/src/lib.rs | 3 | ||||
-rw-r--r-- | lib/arena/src/map.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/arena/src/lib.rs b/lib/arena/src/lib.rs index 3169aa5b8..b15fe941d 100644 --- a/lib/arena/src/lib.rs +++ b/lib/arena/src/lib.rs | |||
@@ -8,7 +8,8 @@ use std::{ | |||
8 | ops::{Index, IndexMut}, | 8 | ops::{Index, IndexMut}, |
9 | }; | 9 | }; |
10 | 10 | ||
11 | pub mod map; | 11 | mod map; |
12 | pub use map::ArenaMap; | ||
12 | 13 | ||
13 | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | 14 | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] |
14 | pub struct RawId(u32); | 15 | pub struct RawId(u32); |
diff --git a/lib/arena/src/map.rs b/lib/arena/src/map.rs index 0f33907c0..8a8063b7e 100644 --- a/lib/arena/src/map.rs +++ b/lib/arena/src/map.rs | |||
@@ -1,5 +1,3 @@ | |||
1 | //! A map from arena IDs to some other type. Space requirement is O(highest ID). | ||
2 | |||
3 | use std::marker::PhantomData; | 1 | use std::marker::PhantomData; |
4 | 2 | ||
5 | use crate::Idx; | 3 | use crate::Idx; |