Skip to content

Commit

Permalink
Make Ptr::reborrow public (#949)
Browse files Browse the repository at this point in the history
This shouldn't have made it onto `main`, but was able to as a result of
the bug described in #947.

This will need to merge before #948 can merge.
  • Loading branch information
joshlf committed Feb 26, 2024
1 parent 54c583c commit ae1182e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pointer/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,9 @@ mod _conversions {
/// Since `self` is borrowed immutably, this prevents any mutable
/// methods from being called on `self` as long as the returned `Ptr`
/// exists.
#[doc(hidden)]
#[allow(clippy::needless_lifetimes)] // Allows us to name the lifetime in the safety comment below.
pub(crate) fn reborrow<'b>(&'b mut self) -> Ptr<'b, T, I>
pub fn reborrow<'b>(&'b mut self) -> Ptr<'b, T, I>
where
'a: 'b,
{
Expand Down

0 comments on commit ae1182e

Please sign in to comment.