Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jun 27, 2024
1 parent ff118e8 commit 1c651dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ mod private {
}
}

// 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 private::BinaryHeapInner as _;

impl private::Sealed for Max {}
impl private::Sealed for Min {}

Expand Down

0 comments on commit 1c651dd

Please sign in to comment.