Skip to content

Commit

Permalink
glib: Convert safety doc comment to a normal comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed May 23, 2024
1 parent 0bd003a commit c951eb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glib/src/main_context_futures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ impl<T: 'static> futures_core::FusedFuture for JoinHandle<T> {
}
}

/// Safety: We can't rely on the auto implementation because we are retrieving
/// the result as a `Box<dyn Any + 'static>` from the [`Source`]. We need to
/// rely on type erasure here, so we have to manually assert the Send bound too.
// Safety: We can't rely on the auto implementation because we are retrieving
// the result as a `Box<dyn Any + 'static>` from the [`Source`]. We need to
// rely on type erasure here, so we have to manually assert the Send bound too.
unsafe impl<T: Send> Send for JoinHandle<T> {}

// rustdoc-stripper-ignore-next
Expand Down

0 comments on commit c951eb5

Please sign in to comment.