From f3287cc389002b006b64bee59a1b2bfa444ab3e7 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 21 Apr 2017 18:04:12 +0200 Subject: [PATCH] Remove unused keyword "mut" --- libimagutil/src/iter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {