fix(mock): impl Async for Mock

This commit is contained in:
Ryan Leckey 2021-01-11 00:12:31 -08:00
parent d81ec4a57f
commit fbbf50a9d0
No known key found for this signature in database
GPG Key ID: F8AA68C235AB08C9

View File

@ -98,6 +98,8 @@ impl MockStream {
}
}
impl crate::Async for Mock {}
impl<'s> IoStream<'s, Mock> for MockStream {
#[cfg(feature = "async")]
type ReadFuture = BoxFuture<'s, io::Result<usize>>;