diff --git a/libimagutil/src/iter.rs b/libimagutil/src/iter.rs index 554ab72c..8a071003 100644 --- a/libimagutil/src/iter.rs +++ b/libimagutil/src/iter.rs @@ -28,8 +28,9 @@ pub trait FoldResult: Sized { /// `Ok(())` idiom. To retrieve the values of your application, include an /// accumulator in `func`. This is the intended reason for the permissive /// `FnMut` type. - fn fold_result(self, mut func: F) -> Result<(), E> + fn fold_result(self, func: F) -> Result<(), E> where F: FnMut(Self::Item) -> Result; + } impl> FoldResult for I {