@@ -388,23 +388,23 @@ pub(crate) mod futures_util {
388
388
use core:: task:: { Poll , Waker , RawWaker , RawWakerVTable } ;
389
389
use core:: pin:: Pin ;
390
390
use core:: marker:: Unpin ;
391
- pub ( crate ) struct Selecter < A : Future < Output =( ) > + Unpin , B : Future < Output =bool > + Unpin > {
391
+ pub ( crate ) struct Selector < A : Future < Output =( ) > + Unpin , B : Future < Output =bool > + Unpin > {
392
392
pub a : A ,
393
393
pub b : B ,
394
394
}
395
- pub ( crate ) enum SelecterOutput {
395
+ pub ( crate ) enum SelectorOutput {
396
396
A , B ( bool ) ,
397
397
}
398
398
399
- impl < A : Future < Output =( ) > + Unpin , B : Future < Output =bool > + Unpin > Future for Selecter < A , B > {
400
- type Output = SelecterOutput ;
401
- fn poll ( mut self : Pin < & mut Self > , ctx : & mut core:: task:: Context < ' _ > ) -> Poll < SelecterOutput > {
399
+ impl < A : Future < Output =( ) > + Unpin , B : Future < Output =bool > + Unpin > Future for Selector < A , B > {
400
+ type Output = SelectorOutput ;
401
+ fn poll ( mut self : Pin < & mut Self > , ctx : & mut core:: task:: Context < ' _ > ) -> Poll < SelectorOutput > {
402
402
match Pin :: new ( & mut self . a ) . poll ( ctx) {
403
- Poll :: Ready ( ( ) ) => { return Poll :: Ready ( SelecterOutput :: A ) ; } ,
403
+ Poll :: Ready ( ( ) ) => { return Poll :: Ready ( SelectorOutput :: A ) ; } ,
404
404
Poll :: Pending => { } ,
405
405
}
406
406
match Pin :: new ( & mut self . b ) . poll ( ctx) {
407
- Poll :: Ready ( res) => { return Poll :: Ready ( SelecterOutput :: B ( res) ) ; } ,
407
+ Poll :: Ready ( res) => { return Poll :: Ready ( SelectorOutput :: B ( res) ) ; } ,
408
408
Poll :: Pending => { } ,
409
409
}
410
410
Poll :: Pending
@@ -419,7 +419,7 @@ pub(crate) mod futures_util {
419
419
pub ( crate ) fn dummy_waker ( ) -> Waker { unsafe { Waker :: from_raw ( RawWaker :: new ( core:: ptr:: null ( ) , & DUMMY_WAKER_VTABLE ) ) } }
420
420
}
421
421
#[ cfg( feature = "futures" ) ]
422
- use futures_util:: { Selecter , SelecterOutput , dummy_waker} ;
422
+ use futures_util:: { Selector , SelectorOutput , dummy_waker} ;
423
423
#[ cfg( feature = "futures" ) ]
424
424
use core:: task;
425
425
0 commit comments