Skip to content

Commit

Permalink
Remove 'borrow bound on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
dureuill committed Mar 16, 2024
1 parent 83469ea commit 11efa08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/box_scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ where
/// - If the passed function panics.
/// - If the underlying future panics.
/// - If the underlying future awaits for a future other than the [`crate::FrozenFuture`].
pub fn enter<'borrow, Output: 'borrow, G>(&'borrow mut self, f: G) -> Output
pub fn enter<'borrow, Output, G>(&'borrow mut self, f: G) -> Output
where
G: for<'a> FnOnce(&'borrow mut <T as Family<'a>>::Family) -> Output,
{
Expand Down
2 changes: 1 addition & 1 deletion src/raw_scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ where
/// 2. `this` verifies the guarantees of `Pin` (one of its fields is pinned in this function)
/// 3. No other exclusive reference to the frozen value. In particular, no concurrent calls to this function.
#[allow(unused_unsafe)]
pub(crate) unsafe fn enter<'borrow, Output: 'borrow, G>(this: NonNull<Self>, f: G) -> Output
pub(crate) unsafe fn enter<'borrow, Output, G>(this: NonNull<Self>, f: G) -> Output
where
G: for<'a> FnOnce(&'borrow mut <T as Family<'a>>::Family) -> Output,
{
Expand Down

0 comments on commit 11efa08

Please # to comment.