diff --git a/bbqueue/src/prod_cons/stream.rs b/bbqueue/src/prod_cons/stream.rs index 543afbf..c43459e 100644 --- a/bbqueue/src/prod_cons/stream.rs +++ b/bbqueue/src/prod_cons/stream.rs @@ -151,8 +151,6 @@ where } } -unsafe impl Send for StreamProducer {} - // ---- StreamConsumer ---- impl StreamConsumer @@ -197,8 +195,6 @@ where } } -unsafe impl Send for StreamConsumer {} - // ---- StreamGrantW ---- impl StreamGrantW @@ -260,7 +256,12 @@ where } } -unsafe impl Send for StreamGrantW {} +unsafe impl Send for StreamGrantW +where + Q: BbqHandle, + Q::Target: Send, +{ +} // ---- StreamGrantR ---- @@ -321,4 +322,9 @@ where } } -unsafe impl Send for StreamGrantR {} +unsafe impl Send for StreamGrantR +where + Q: BbqHandle, + Q::Target: Send, +{ +}