Remove Unpin requirement for the send Buf
This commit is contained in:
		| @@ -281,7 +281,7 @@ impl<T, B> FramedWrite<T, B> { | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl<T: AsyncRead + Unpin, B: Unpin> AsyncRead for FramedWrite<T, B> { | ||||
| impl<T: AsyncRead + Unpin, B> AsyncRead for FramedWrite<T, B> { | ||||
|     unsafe fn prepare_uninitialized_buffer(&self, buf: &mut [std::mem::MaybeUninit<u8>]) -> bool { | ||||
|         self.inner.prepare_uninitialized_buffer(buf) | ||||
|     } | ||||
| @@ -303,6 +303,9 @@ impl<T: AsyncRead + Unpin, B: Unpin> AsyncRead for FramedWrite<T, B> { | ||||
|     } | ||||
| } | ||||
|  | ||||
| // We never project the Pin to `B`. | ||||
| impl<T: Unpin, B> Unpin for FramedWrite<T, B> {} | ||||
|  | ||||
| #[cfg(feature = "unstable")] | ||||
| mod unstable { | ||||
|     use super::*; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user