Skip to content

Commit

Permalink
fix: on AsyncReadWrite enforce Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Aug 8, 2024
1 parent 11d2e97 commit d3ebb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rumqttc/src/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ impl Network {
}
}

pub trait AsyncReadWrite: AsyncRead + AsyncWrite + Send + Unpin {}
impl<T> AsyncReadWrite for T where T: AsyncRead + AsyncWrite + Send + Unpin {}
pub trait AsyncReadWrite: AsyncRead + AsyncWrite + Send + Sync + Unpin {}
impl<T> AsyncReadWrite for T where T: AsyncRead + AsyncWrite + Send + Sync + Unpin {}

0 comments on commit d3ebb51

Please sign in to comment.