@@ -2,11 +2,10 @@ use std::cmp;
2
2
use std:: fmt;
3
3
use std:: io:: { self , IoSlice } ;
4
4
use std:: pin:: Pin ;
5
- use std:: task:: { Context , Poll } ;
5
+ use std:: task:: { ready , Context , Poll } ;
6
6
7
7
use crate :: rt:: { Read , ReadBuf , Write } ;
8
8
use bytes:: { Buf , BufMut , Bytes , BytesMut } ;
9
- use futures_util:: ready;
10
9
11
10
use super :: { Http1Transaction , ParseContext , ParsedMessage } ;
12
11
use crate :: common:: buf:: BufList ;
@@ -325,7 +324,7 @@ where
325
324
326
325
#[ cfg( test) ]
327
326
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) )
329
328
}
330
329
}
331
330
@@ -668,7 +667,7 @@ mod tests {
668
667
// // First, let's just check that the Mock would normally return an
669
668
// // error on an unexpected write, even if the buffer is empty...
670
669
// let mut mock = Mock::new().build();
671
- // futures_util ::future::poll_fn(|cx| {
670
+ // std ::future::poll_fn(|cx| {
672
671
// Pin::new(&mut mock).poll_write_buf(cx, &mut Cursor::new(&[]))
673
672
// })
674
673
// .await
@@ -700,7 +699,7 @@ mod tests {
700
699
701
700
// We expect a `parse` to be not ready, and so can't await it directly.
702
701
// Rather, this `poll_fn` will wrap the `Poll` result.
703
- futures_util :: future:: poll_fn ( |cx| {
702
+ std :: future:: poll_fn ( |cx| {
704
703
let parse_ctx = ParseContext {
705
704
cached_headers : & mut None ,
706
705
req_method : & mut None ,
0 commit comments