@@ -1280,7 +1280,7 @@ where
12801280 #[ inline]
12811281 fn find < T , B > (
12821282 f : & mut impl FnMut ( T ) -> Option < B > ,
1283- ) -> impl FnMut ( ( ) , T ) -> ControlFlow < ( ) , B > + ' _ {
1283+ ) -> impl FnMut ( ( ) , T ) -> ControlFlow < B > + ' _ {
12841284 move |( ) , x| match f ( x) {
12851285 Some ( x) => ControlFlow :: Break ( x) ,
12861286 None => ControlFlow :: CONTINUE ,
@@ -2059,7 +2059,7 @@ where
20592059 flag : & ' a mut bool ,
20602060 p : & ' a mut impl FnMut ( & T ) -> bool ,
20612061 mut fold : impl FnMut ( Acc , T ) -> R + ' a ,
2062- ) -> impl FnMut ( Acc , T ) -> ControlFlow < Acc , R > + ' a {
2062+ ) -> impl FnMut ( Acc , T ) -> ControlFlow < R , Acc > + ' a {
20632063 move |acc, x| {
20642064 if p ( & x) {
20652065 ControlFlow :: from_try ( fold ( acc, x) )
@@ -2372,7 +2372,7 @@ where
23722372 fn check < T , Acc , R : Try < Ok = Acc > > (
23732373 mut n : usize ,
23742374 mut fold : impl FnMut ( Acc , T ) -> R ,
2375- ) -> impl FnMut ( Acc , T ) -> ControlFlow < Acc , R > {
2375+ ) -> impl FnMut ( Acc , T ) -> ControlFlow < R , Acc > {
23762376 move |acc, x| {
23772377 n -= 1 ;
23782378 let r = fold ( acc, x) ;
@@ -2500,7 +2500,7 @@ where
25002500 fn check < ' a , T , Acc , R : Try < Ok = Acc > > (
25012501 n : & ' a mut usize ,
25022502 mut fold : impl FnMut ( Acc , T ) -> R + ' a ,
2503- ) -> impl FnMut ( Acc , T ) -> ControlFlow < Acc , R > + ' a {
2503+ ) -> impl FnMut ( Acc , T ) -> ControlFlow < R , Acc > + ' a {
25042504 move |acc, x| {
25052505 * n -= 1 ;
25062506 let r = fold ( acc, x) ;
@@ -2685,7 +2685,7 @@ where
26852685 state : & ' a mut St ,
26862686 f : & ' a mut impl FnMut ( & mut St , T ) -> Option < B > ,
26872687 mut fold : impl FnMut ( Acc , B ) -> R + ' a ,
2688- ) -> impl FnMut ( Acc , T ) -> ControlFlow < Acc , R > + ' a {
2688+ ) -> impl FnMut ( Acc , T ) -> ControlFlow < R , Acc > + ' a {
26892689 move |acc, x| match f ( state, x) {
26902690 None => ControlFlow :: Break ( Try :: from_ok ( acc) ) ,
26912691 Some ( x) => ControlFlow :: from_try ( fold ( acc, x) ) ,
0 commit comments