aboutsummaryrefslogtreecommitdiff
path: root/lib/arena/src
diff options
context:
space:
mode:
authorAramis Razzaghipour <[email protected]>2021-01-15 00:11:07 +0000
committerAramis Razzaghipour <[email protected]>2021-01-15 00:14:04 +0000
commit9b5ba090db2c1f913d3f127573ac60c5eb2601bb (patch)
tree400f99b812f2133e2a345f23555a98754827b661 /lib/arena/src
parentf88f3d688507508ae9528101e13e1c62902467a3 (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.rs3
-rw-r--r--lib/arena/src/map.rs2
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
11pub mod map; 11mod map;
12pub use map::ArenaMap;
12 13
13#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] 14#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
14pub struct RawId(u32); 15pub 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
3use std::marker::PhantomData; 1use std::marker::PhantomData;
4 2
5use crate::Idx; 3use crate::Idx;