From 43bd11bf2fa4eaee84383ddbe4c750868f1bb684 Mon Sep 17 00:00:00 2001 From: Zahari Dichev Date: Thu, 8 Oct 2020 11:56:01 +0300 Subject: io: remove Poll from the AsyncSeek::start_seek return value (#2885) --- tokio-util/src/either.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tokio-util') diff --git a/tokio-util/src/either.rs b/tokio-util/src/either.rs index 3c749c1b..f5246af2 100644 --- a/tokio-util/src/either.rs +++ b/tokio-util/src/either.rs @@ -125,12 +125,8 @@ where L: AsyncSeek, R: AsyncSeek, { - fn start_seek( - self: Pin<&mut Self>, - cx: &mut Context<'_>, - position: SeekFrom, - ) -> Poll> { - 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> { -- cgit v1.2.3