diff options
Diffstat (limited to 'tokio/src/sync/mpsc/chan.rs')
-rw-r--r-- | tokio/src/sync/mpsc/chan.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/sync/mpsc/chan.rs b/tokio/src/sync/mpsc/chan.rs index 6fedb5c5..3f50493e 100644 --- a/tokio/src/sync/mpsc/chan.rs +++ b/tokio/src/sync/mpsc/chan.rs @@ -147,7 +147,7 @@ impl<T, S: Semaphore> Tx<T, S> { self.inner.semaphore.is_closed() } - pub(crate) async fn closed(&mut self) { + pub(crate) async fn closed(&self) { use std::future::Future; use std::pin::Pin; use std::task::Poll; |