Merge pull request #914 from matthiasbeyer/libimagutil/fix

Remove unused keyword "mut"
This commit is contained in:
Matthias Beyer 2017-04-22 13:44:39 +02:00 committed by GitHub
commit 7e3c9467e7
1 changed files with 2 additions and 1 deletions

View File

@ -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<R, E, F>(self, mut func: F) -> Result<(), E>
fn fold_result<R, E, F>(self, func: F) -> Result<(), E>
where F: FnMut(Self::Item) -> Result<R, E>;
}
impl<X, I: Iterator<Item = X>> FoldResult for I {