sync: remove 'static bound on impl Sink for PollSender (#6397)

In PR #5665, the `'static` bound has been removed on values sent into
`PollSender`. One of this bound was remaining on the `PollSender`
implementation of `Sink`. This patch removes it and adds some tests on
the `Sink` interface for `PollSender`.
This commit is contained in:
Vincent Palancher
2024-03-14 10:23:59 +01:00
committed by GitHub
parent 3141ed6228
commit c9e75785c8
2 changed files with 89 additions and 2 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ impl<T> Clone for PollSender<T> {
}
}
impl<T: Send + 'static> Sink<T> for PollSender<T> {
impl<T: Send> Sink<T> for PollSender<T> {
type Error = PollSendError<T>;
fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {