summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-04-22 13:44:39 +0200
committerGitHub <noreply@github.com>2017-04-22 13:44:39 +0200
commit7e3c9467e7b95324f1bc34dc05fb8b33e2a26e90 (patch)
tree4987648a1bff6fce1faa2ab1aa19f77eea519727
parent25a35183dd29051a159475f4a18d10de5051387c (diff)
parentf3287cc389002b006b64bee59a1b2bfa444ab3e7 (diff)
downloadimag-7e3c9467e7b95324f1bc34dc05fb8b33e2a26e90.zip
imag-7e3c9467e7b95324f1bc34dc05fb8b33e2a26e90.tar.gz
Merge pull request #914 from matthiasbeyer/libimagutil/fix
Remove unused keyword "mut"
-rw-r--r--libimagutil/src/iter.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/libimagutil/src/iter.rs b/libimagutil/src/iter.rs
index 554ab72..8a07100 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<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 {