diff options
author | Zahari Dichev <zaharidichev@gmail.com> | 2020-10-08 11:56:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 10:56:01 +0200 |
commit | 43bd11bf2fa4eaee84383ddbe4c750868f1bb684 (patch) | |
tree | 29ab12a3ec77ff0dfc71c6f678a87516c5801456 /tokio-util | |
parent | d94ab62c54ac594f912a116965fecbdfb5e1d3e6 (diff) |
io: remove Poll from the AsyncSeek::start_seek return value (#2885)
Diffstat (limited to 'tokio-util')
-rw-r--r-- | tokio-util/src/either.rs | 8 |
1 files changed, 2 insertions, 6 deletions
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<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>> { |