From d3ebb5172d97fd8e76192d93a1b811e80fdda784 Mon Sep 17 00:00:00 2001 From: Devdutt Shenoi Date: Thu, 8 Aug 2024 21:52:50 +0530 Subject: [PATCH] fix: on `AsyncReadWrite` enforce `Sync` --- rumqttc/src/framed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rumqttc/src/framed.rs b/rumqttc/src/framed.rs index beb1d32de..ec0e6ba6d 100644 --- a/rumqttc/src/framed.rs +++ b/rumqttc/src/framed.rs @@ -92,5 +92,5 @@ impl Network { } } -pub trait AsyncReadWrite: AsyncRead + AsyncWrite + Send + Unpin {} -impl AsyncReadWrite for T where T: AsyncRead + AsyncWrite + Send + Unpin {} +pub trait AsyncReadWrite: AsyncRead + AsyncWrite + Send + Sync + Unpin {} +impl AsyncReadWrite for T where T: AsyncRead + AsyncWrite + Send + Sync + Unpin {}