diff options
| author | Joshua Landau <joshua@landau.ws> | 2015-06-10 17:22:20 +0100 |
|---|---|---|
| committer | Joshua Landau <joshua@landau.ws> | 2015-06-10 21:14:03 +0100 |
| commit | ca7418b84658fc1c723672c462aa0a7878d88b64 (patch) | |
| tree | 6fba2849520c8c205c53ca12aaa8445eb8e03ab9 /src/libcoretest/option.rs | |
| parent | d8a9570154dfbc4032cb3a6ba8b51c6256518dcd (diff) | |
Removed many pointless calls to *iter() and iter_mut()
Diffstat (limited to 'src/libcoretest/option.rs')
| -rw-r--r-- | src/libcoretest/option.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoretest/option.rs b/src/libcoretest/option.rs index 66945ad251f..4b445c84e8f 100644 --- a/src/libcoretest/option.rs +++ b/src/libcoretest/option.rs @@ -72,7 +72,7 @@ fn test_option_dance() { let x = Some(()); let mut y = Some(5); let mut y2 = 0; - for _x in x.iter() { + for _x in x { y2 = y.take().unwrap(); } assert_eq!(y2, 5); |
