Bytes reader should be Send

This commit is contained in:
Carl Lerche
2016-06-19 21:32:18 +01:00
parent 270d2e2844
commit 3ca009577b
4 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -295,7 +295,7 @@ impl<T: io::Write> WriteExt for T {
*
*/
impl Buf for Box<Buf+'static> {
impl Buf for Box<Buf+Send+'static> {
fn remaining(&self) -> usize {
(**self).remaining()
}
@@ -313,7 +313,7 @@ impl Buf for Box<Buf+'static> {
}
}
impl fmt::Debug for Box<Buf+'static> {
impl fmt::Debug for Box<Buf+Send+'static> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
write!(fmt, "Box<Buf> {{ remaining: {} }}", self.remaining())
}
@@ -409,7 +409,7 @@ macro_rules! impl_read {
impl_read!(ByteBuf);
impl_read!(ROByteBuf);
impl_read!(RopeBuf);
impl_read!(Box<Buf+'static>);
impl_read!(Box<Buf+Send+'static>);
macro_rules! impl_write {
($ty:ty) => {