From 9b5ba090db2c1f913d3f127573ac60c5eb2601bb Mon Sep 17 00:00:00 2001 From: Aramis Razzaghipour Date: Fri, 15 Jan 2021 11:11:07 +1100 Subject: Remove map module from la-arena public API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- lib/arena/src/lib.rs | 3 ++- lib/arena/src/map.rs | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/arena/src') 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::{ ops::{Index, IndexMut}, }; -pub mod map; +mod map; +pub use map::ArenaMap; #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] 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 @@ -//! A map from arena IDs to some other type. Space requirement is O(highest ID). - use std::marker::PhantomData; use crate::Idx; -- cgit v1.2.3