Skip to content

Commit

Permalink
vec: remove code duplication due to VecView.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Jun 27, 2024
1 parent 1f25e65 commit b974560
Show file tree
Hide file tree
Showing 2 changed files with 442 additions and 1,045 deletions.
9 changes: 1 addition & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ pub use indexmap::{
pub use indexset::{FnvIndexSet, IndexSet, Iter as IndexSetIter};
pub use linear_map::LinearMap;
pub use string::String;

// Workaround https://github.com/rust-lang/rust/issues/119015. This is required so that the methods on `VecView` and `Vec` are properly documented.
// cfg(doc) prevents `VecInner` being part of the public API.
// doc(hidden) prevents the `pub use vec::VecInner` from being visible in the documentation.
#[cfg(doc)]
#[doc(hidden)]
pub use vec::VecInner as _;
pub use vec::{Vec, VecView};

#[macro_use]
Expand All @@ -115,7 +108,7 @@ mod indexmap;
mod indexset;
mod linear_map;
pub mod string;
mod vec;
pub mod vec;

#[cfg(feature = "serde")]
mod de;
Expand Down
Loading

0 comments on commit b974560

Please sign in to comment.