aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/reader.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/reader.rs b/src/reader.rs
index 0cca93f..df212bb 100644
--- a/src/reader.rs
+++ b/src/reader.rs
@@ -151,10 +151,8 @@ impl Readable for WebSocketOnMessageRead {
}
pub trait Readable {
- fn read_buf(
- &mut self,
- buffer: &mut Buffer,
- ) -> impl std::future::Future<Output = Result<usize>> + Send;
+ fn read_buf(&mut self, buffer: &mut Buffer)
+ -> impl std::future::Future<Output = Result<usize>>;
}
impl<R> Reader<R> {
@@ -207,7 +205,7 @@ impl<R> Reader<R> {
impl<R> Readable for R
where
- R: AsyncRead + Unpin + Send,
+ R: AsyncRead + Unpin,
{
async fn read_buf(&mut self, buffer: &mut Buffer) -> Result<usize> {
Ok(tokio::io::AsyncReadExt::read_buf(self, buffer).await?)