@@ -2,11 +2,10 @@ use std::cmp;
22use std:: fmt;
33use std:: io:: { self , IoSlice } ;
44use std:: pin:: Pin ;
5- use std:: task:: { Context , Poll } ;
5+ use std:: task:: { ready , Context , Poll } ;
66
77use crate :: rt:: { Read , ReadBuf , Write } ;
88use bytes:: { Buf , BufMut , Bytes , BytesMut } ;
9- use futures_util:: ready;
109
1110use super :: { Http1Transaction , ParseContext , ParsedMessage } ;
1211use crate :: common:: buf:: BufList ;
@@ -325,7 +324,7 @@ where
325324
326325 #[ cfg( test) ]
327326 fn flush ( & mut self ) -> impl std:: future:: Future < Output = io:: Result < ( ) > > + ' _ {
328- futures_util :: future:: poll_fn ( move |cx| self . poll_flush ( cx) )
327+ std :: future:: poll_fn ( move |cx| self . poll_flush ( cx) )
329328 }
330329}
331330
@@ -668,7 +667,7 @@ mod tests {
668667 // // First, let's just check that the Mock would normally return an
669668 // // error on an unexpected write, even if the buffer is empty...
670669 // let mut mock = Mock::new().build();
671- // futures_util ::future::poll_fn(|cx| {
670+ // std ::future::poll_fn(|cx| {
672671 // Pin::new(&mut mock).poll_write_buf(cx, &mut Cursor::new(&[]))
673672 // })
674673 // .await
@@ -700,7 +699,7 @@ mod tests {
700699
701700 // We expect a `parse` to be not ready, and so can't await it directly.
702701 // Rather, this `poll_fn` will wrap the `Poll` result.
703- futures_util :: future:: poll_fn ( |cx| {
702+ std :: future:: poll_fn ( |cx| {
704703 let parse_ctx = ParseContext {
705704 cached_headers : & mut None ,
706705 req_method : & mut None ,
0 commit comments