Skip to content

Commit 86ec635

Browse files
scottmcmphimuemue
authored andcommitted
Use ControlFlow in fold_while implementation
1 parent d5897f7 commit 86ec635

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3169,7 +3169,7 @@ pub trait Itertools: Iterator {
31693169
Self: Sized,
31703170
F: FnMut(B, Self::Item) -> FoldWhile<B>,
31713171
{
3172-
use Result::{Err as Break, Ok as Continue};
3172+
use core::ops::ControlFlow::{Break, Continue};
31733173

31743174
let result = self.try_fold(
31753175
init,

0 commit comments

Comments
 (0)