diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2019-11-01 13:43:44 +0100 |
|---|---|---|
| committer | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2019-11-06 14:43:52 +0100 |
| commit | 761ba89ffd73498c3014d3b43b5bc0b4f592a284 (patch) | |
| tree | b3ed59e887b54e515b62c99b4df6810c3f5e874a /src/libtest | |
| parent | 8fd09d9db68437d5ff48ab8889d949d08a8bb3f9 (diff) | |
| download | rust-761ba89ffd73498c3014d3b43b5bc0b4f592a284.tar.gz rust-761ba89ffd73498c3014d3b43b5bc0b4f592a284.zip | |
Replace `array.into_iter()` with `iter()` in `libtest/tests.rs`
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtest/tests.rs b/src/libtest/tests.rs index 9de774555e9..e0e211444cf 100644 --- a/src/libtest/tests.rs +++ b/src/libtest/tests.rs @@ -269,7 +269,7 @@ fn time_test_failure_template(test_type: TestType) -> TestResult { fn test_error_on_exceed() { let types = [TestType::UnitTest, TestType::IntegrationTest, TestType::DocTest]; - for test_type in types.into_iter() { + for test_type in types.iter() { let result = time_test_failure_template(*test_type); assert_eq!(result, TestResult::TrTimedFail); @@ -320,7 +320,7 @@ fn test_time_options_threshold() { (TestType::DocTest, doc.critical.as_millis(), true, true), ]; - for (test_type, time, expected_warn, expected_critical) in test_vector.into_iter() { + for (test_type, time, expected_warn, expected_critical) in test_vector.iter() { let test_desc = typed_test_desc(*test_type); let exec_time = test_exec_time(*time as u64); |
