@@ -128,7 +128,7 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
128128 . send ( CopyFail :: new ( "failed to start COPY" ) )
129129 . await ?;
130130 conn. stream
131- . recv_expect ( MessageFormat :: ReadyForQuery )
131+ . recv_expect :: < ( ) > ( MessageFormat :: ReadyForQuery )
132132 . await ?;
133133 Err ( e)
134134 }
@@ -213,7 +213,7 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
213213 loop {
214214 let read = match ( ) {
215215 // Tokio lets us read into the buffer without zeroing first
216- #[ cfg( feature = "runtime -tokio" ) ]
216+ #[ cfg( feature = "_rt -tokio" ) ]
217217 _ if buf. len ( ) != buf. capacity ( ) => {
218218 // in case we have some data in the buffer, which can occur
219219 // if the previous write did not fill the buffer
@@ -267,7 +267,7 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
267267 Some ( Cow :: Borrowed ( "57014" ) ) => {
268268 // postgres abort received error code
269269 conn. stream
270- . recv_expect ( MessageFormat :: ReadyForQuery )
270+ . recv_expect :: < ( ) > ( MessageFormat :: ReadyForQuery )
271271 . await ?;
272272 Ok ( ( ) )
273273 }
@@ -294,7 +294,7 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
294294 . await ?;
295295
296296 conn. stream
297- . recv_expect ( MessageFormat :: ReadyForQuery )
297+ . recv_expect :: < ( ) > ( MessageFormat :: ReadyForQuery )
298298 . await ?;
299299
300300 Ok ( cc. rows_affected ( ) )
@@ -330,8 +330,8 @@ async fn pg_begin_copy_out<'c, C: DerefMut<Target = PgConnection> + Send + 'c>(
330330 MessageFormat :: CopyData => r#yield!( msg. decode:: <CopyData <Bytes >>( ) ?. 0 ) ,
331331 MessageFormat :: CopyDone => {
332332 let _ = msg. decode:: <CopyDone >( ) ?;
333- conn. stream. recv_expect( MessageFormat :: CommandComplete ) . await ?;
334- conn. stream. recv_expect( MessageFormat :: ReadyForQuery ) . await ?;
333+ conn. stream. recv_expect:: < CommandComplete > ( MessageFormat :: CommandComplete ) . await ?;
334+ conn. stream. recv_expect:: < ( ) > ( MessageFormat :: ReadyForQuery ) . await ?;
335335 return Ok ( ( ) )
336336 } ,
337337 _ => return Err ( err_protocol!( "unexpected message format during copy out: {:?}" , msg. format) )
0 commit comments