From de9d954ba951af64d8a88e482f796d470d984190 Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Khan Date: Tue, 30 Jan 2024 18:29:22 +0100 Subject: [PATCH] Port to event-listener v4 While the eventual event-listener v5 might take a while to be released, in the meantime, let's port to the latest stable version so to have all smol-rs crates depend on the same event-listener and hence not dragging along 2 versions of it in the dependend projects. --- Cargo.toml | 4 ++-- src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 579de57..f47117d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,8 @@ name = "broadcast_bench" [features] [dependencies] -event-listener = "3" -event-listener-strategy = "0.1.0" +event-listener = "4" +event-listener-strategy = "0.4.0" futures-core = "0.3.21" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 9ad33f3..50c345d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1610,7 +1610,7 @@ impl<'a, T: Clone> EventListenerFuture for SendInner<'a, T> { type Output = Result, SendError>; fn poll_with_strategy<'x, S: event_listener_strategy::Strategy<'x>>( - self: Pin<&'x mut Self>, + self: Pin<&mut Self>, strategy: &mut S, context: &mut S::Context, ) -> Poll { @@ -1677,7 +1677,7 @@ impl<'a, T: Clone> EventListenerFuture for RecvInner<'a, T> { type Output = Result; fn poll_with_strategy<'x, S: event_listener_strategy::Strategy<'x>>( - self: Pin<&'x mut Self>, + self: Pin<&mut Self>, strategy: &mut S, context: &mut S::Context, ) -> Poll {