Skip to content

Commit

Permalink
fix: enable sync only for builds without websocket support
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Aug 9, 2024
1 parent d3ebb51 commit a0bcf62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rumqttc/src/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,11 @@ impl Network {
}
}

#[cfg(not(feature = "websocket"))]
pub trait AsyncReadWrite: AsyncRead + AsyncWrite + Send + Sync + Unpin {}
#[cfg(not(feature = "websocket"))]
impl<T> AsyncReadWrite for T where T: AsyncRead + AsyncWrite + Send + Sync + Unpin {}
#[cfg(feature = "websocket")]
pub trait AsyncReadWrite: AsyncRead + AsyncWrite + Send + Unpin {}
#[cfg(feature = "websocket")]
impl<T> AsyncReadWrite for T where T: AsyncRead + AsyncWrite + Send + Unpin {}

0 comments on commit a0bcf62

Please sign in to comment.