@@ -260,7 +260,7 @@ where
260
260
Self : Sized ,
261
261
Fold : FnMut ( Acc , & Self :: Item ) -> Acc ,
262
262
{
263
- self . it . rev ( ) . fold ( init, move |acc, item| f ( acc, & item) )
263
+ self . it . rfold ( init, move |acc, item| f ( acc, & item) )
264
264
}
265
265
}
266
266
@@ -293,9 +293,7 @@ where
293
293
Self : Sized ,
294
294
F : FnMut ( B , & mut Self :: Item ) -> B ,
295
295
{
296
- self . it
297
- . rev ( )
298
- . fold ( init, move |acc, mut item| f ( acc, & mut item) )
296
+ self . it . rfold ( init, move |acc, mut item| f ( acc, & mut item) )
299
297
}
300
298
}
301
299
@@ -360,7 +358,7 @@ where
360
358
Self : Sized ,
361
359
Fold : FnMut ( Acc , & Self :: Item ) -> Acc ,
362
360
{
363
- self . it . rev ( ) . fold ( init, f)
361
+ self . it . rfold ( init, f)
364
362
}
365
363
}
366
364
@@ -428,7 +426,7 @@ where
428
426
Self : Sized ,
429
427
Fold : FnMut ( Acc , & Self :: Item ) -> Acc ,
430
428
{
431
- self . it . rev ( ) . fold ( init, move |acc, item| f ( acc, item) )
429
+ self . it . rfold ( init, move |acc, item| f ( acc, item) )
432
430
}
433
431
}
434
432
@@ -464,7 +462,7 @@ where
464
462
Self : Sized ,
465
463
F : FnMut ( B , & mut Self :: Item ) -> B ,
466
464
{
467
- self . it . rev ( ) . fold ( init, f)
465
+ self . it . rfold ( init, f)
468
466
}
469
467
}
470
468
0 commit comments