@@ -152,9 +152,8 @@ mod internal {
152152 use std:: future:: Future ;
153153 use std:: pin:: Pin ;
154154 use std:: sync:: { Mutex , Weak } ;
155- use std:: task:: { self , Poll } ;
155+ use std:: task:: { self , ready , Poll } ;
156156
157- use futures_core:: ready;
158157 use pin_project_lite:: pin_project;
159158 use tokio:: sync:: oneshot;
160159 use tower_service:: Service ;
@@ -351,7 +350,7 @@ mod tests {
351350 let mut singleton = Singleton :: new ( mock_svc) ;
352351
353352 handle. allow ( 1 ) ;
354- crate :: common :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
353+ std :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
355354 . await
356355 . unwrap ( ) ;
357356 // First call: should go into Driving
@@ -374,7 +373,7 @@ mod tests {
374373 let mut singleton = Singleton :: new ( mock_svc) ;
375374
376375 handle. allow ( 1 ) ;
377- crate :: common :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
376+ std :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
378377 . await
379378 . unwrap ( ) ;
380379 // Drive first call to completion
@@ -396,7 +395,7 @@ mod tests {
396395
397396 // Allow the singleton to be made
398397 outer_handle. allow ( 2 ) ;
399- crate :: common :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
398+ std :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
400399 . await
401400 . unwrap ( ) ;
402401
@@ -417,15 +416,15 @@ mod tests {
417416 ) ) ;
418417
419418 // Drive poll_ready on cached service
420- let err = crate :: common :: future:: poll_fn ( |cx| cached. poll_ready ( cx) )
419+ let err = std :: future:: poll_fn ( |cx| cached. poll_ready ( cx) )
421420 . await
422421 . err ( )
423422 . expect ( "expected poll_ready error" ) ;
424423 assert_eq ! ( err. to_string( ) , "cached poll_ready failed" ) ;
425424
426425 // After error, the singleton should be cleared, so a new call drives outer again
427426 outer_handle. allow ( 1 ) ;
428- crate :: common :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
427+ std :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
429428 . await
430429 . unwrap ( ) ;
431430 let fut2 = singleton. call ( ( ) ) ;
@@ -436,7 +435,7 @@ mod tests {
436435
437436 // The new cached service should still work
438437 inner_handle2. allow ( 1 ) ;
439- crate :: common :: future:: poll_fn ( |cx| cached2. poll_ready ( cx) )
438+ std :: future:: poll_fn ( |cx| cached2. poll_ready ( cx) )
440439 . await
441440 . expect ( "expected poll_ready" ) ;
442441 let cfut2 = cached2. call ( ( ) ) ;
@@ -450,7 +449,7 @@ mod tests {
450449 let ( mock_svc, mut handle) = tower_test:: mock:: pair :: < ( ) , & ' static str > ( ) ;
451450 let mut singleton = Singleton :: new ( mock_svc) ;
452451
453- crate :: common :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
452+ std :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
454453 . await
455454 . unwrap ( ) ;
456455 let fut1 = singleton. call ( ( ) ) ;
@@ -469,14 +468,14 @@ mod tests {
469468 let ( mock_svc, mut handle) = tower_test:: mock:: pair :: < ( ) , & ' static str > ( ) ;
470469 let mut singleton = Singleton :: new ( mock_svc) ;
471470
472- crate :: common :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
471+ std :: future:: poll_fn ( |cx| singleton. poll_ready ( cx) )
473472 . await
474473 . unwrap ( ) ;
475474 let mut fut1 = singleton. call ( ( ) ) ;
476475 let fut2 = singleton. call ( ( ) ) ;
477476
478477 // poll driver just once, and then drop
479- crate :: common :: future:: poll_fn ( move |cx| {
478+ std :: future:: poll_fn ( move |cx| {
480479 let _ = Pin :: new ( & mut fut1) . poll ( cx) ;
481480 Poll :: Ready ( ( ) )
482481 } )
0 commit comments