Skip to content

Commit

Permalink
Fix UB: Non-static callbacks are unsound
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Nov 11, 2023
1 parent d178c96 commit 7b51805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/asyncify/event_bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ mod async_traits_impl {
CV::RawMutex: Send + Sync + 'static,
P: Clone + Send + 'static,
E: crate::event_bus::EventBus<P>,
for<'a> E::Subscription<'a>: Send,
for<'a> E::Subscription<'a>: Send + 'static,
{
type Subscription<'a> = AsyncSubscription<CV, P, E::Subscription<'a>, E::Error> where Self: 'a;

Expand Down

0 comments on commit 7b51805

Please sign in to comment.