aboutsummaryrefslogtreecommitdiff
path: root/src/message.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/message.rs')
-rw-r--r--src/message.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.rs b/src/message.rs
index d918c29..5721318 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -311,7 +311,7 @@ impl Framing {
}
}
- pub async fn from_stream<S: Stream<Item = Packet> + Unpin + Send + 'static>(
+ pub async fn from_stream<S: Stream<Item = Packet> + Unpin + Send + Sync + 'static>(
mut stream: S,
) -> Result<Self, Error> {
let mut packet = stream