Skip to content

Commit b974560

Browse files
committed
vec: remove code duplication due to VecView.
1 parent 1f25e65 commit b974560

File tree

2 files changed

+442
-1045
lines changed

2 files changed

+442
-1045
lines changed

src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ pub use indexmap::{
9696
pub use indexset::{FnvIndexSet, IndexSet, Iter as IndexSetIter};
9797
pub use linear_map::LinearMap;
9898
pub use string::String;
99-
100-
// Workaround https://github.com/rust-lang/rust/issues/119015. This is required so that the methods on `VecView` and `Vec` are properly documented.
101-
// cfg(doc) prevents `VecInner` being part of the public API.
102-
// doc(hidden) prevents the `pub use vec::VecInner` from being visible in the documentation.
103-
#[cfg(doc)]
104-
#[doc(hidden)]
105-
pub use vec::VecInner as _;
10699
pub use vec::{Vec, VecView};
107100

108101
#[macro_use]
@@ -115,7 +108,7 @@ mod indexmap;
115108
mod indexset;
116109
mod linear_map;
117110
pub mod string;
118-
mod vec;
111+
pub mod vec;
119112

120113
#[cfg(feature = "serde")]
121114
mod de;

0 commit comments

Comments
 (0)