diff options
-rw-r--r-- | src/and_then.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/and_then.rs b/src/and_then.rs index 6b740a3..36f6938 100644 --- a/src/and_then.rs +++ b/src/and_then.rs @@ -91,7 +91,7 @@ fn test_and_then_ok() { use std::str::FromStr; let mapped: Vec<_> = ["1", "2", "a", "b", "4", "5"] - .into_iter() + .iter() .map(|txt| usize::from_str(txt).map_err(|e| (txt, e))) .and_then_ok(|i| Ok(2 * i)) .and_then_err(|(txt, e)| if txt == &"a" { Ok(15) } else { Err(e) }) |