From 47a2bed5c2e209590ec87e96e5205bb622ff99d2 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Fri, 22 Sep 2023 07:30:09 -0700 Subject: [PATCH] m: Update to e-l-s breaking changes Make sure that smol-rs/event-listener-strategy#6 doesn't break the other main use case. Signed-off-by: John Nunley --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bf3e842..371feaa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ exclude = ["/.*"] [dependencies] concurrent-queue = { version = "2", default-features = false } event-listener = { version = "3.0.0", default-features = false } -event-listener-strategy = { version = "0.2.0", default-features = false } +event-listener-strategy = { version = "0.3.0", default-features = false } futures-core = { version = "0.3.5", default-features = false } pin-project-lite = "0.2.11" diff --git a/src/lib.rs b/src/lib.rs index d11f8f0..340bbc4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1103,7 +1103,7 @@ impl<'a, T> EventListenerFuture for SendInner<'a, T> { /// Run this future with the given `Strategy`. fn poll_with_strategy<'x, S: Strategy<'x>>( - self: Pin<&'x mut Self>, + self: Pin<&mut Self>, strategy: &mut S, context: &mut S::Context, ) -> Poll>> { @@ -1152,7 +1152,7 @@ impl<'a, T> EventListenerFuture for RecvInner<'a, T> { /// Run this future with the given `Strategy`. fn poll_with_strategy<'x, S: Strategy<'x>>( - self: Pin<&'x mut Self>, + self: Pin<&mut Self>, strategy: &mut S, cx: &mut S::Context, ) -> Poll> {