We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f744467 commit d35ff15Copy full SHA for d35ff15
tokio-postgres/src/copy_both.rs
@@ -151,7 +151,8 @@ where
151
///
152
/// The `Sink::close` method is equivalent to `finish`, except that it does not return the
153
/// number of rows.
154
- pub async fn finish(mut self: Pin<&mut Self>) -> Result<u64, Error> {
+ pub async fn finish(mut self) -> Result<u64, Error> {
155
+ let pinned = Pin::new(&mut self);
156
future::poll_fn(|cx| self.as_mut().poll_finish(cx)).await
157
}
158
0 commit comments