io: remove Poll from the AsyncSeek::start_seek return value (#2885)

This commit is contained in:
Zahari Dichev
2020-10-08 10:56:01 +02:00
committed by GitHub
parent d94ab62c54
commit 43bd11bf2f
4 changed files with 49 additions and 66 deletions
+2 -6
View File
@@ -125,12 +125,8 @@ where
L: AsyncSeek,
R: AsyncSeek,
{
fn start_seek(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
position: SeekFrom,
) -> Poll<Result<()>> {
delegate_call!(self.start_seek(cx, position))
fn start_seek(self: Pin<&mut Self>, position: SeekFrom) -> Result<()> {
delegate_call!(self.start_seek(position))
}
fn poll_complete(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<u64>> {