Skip to content

Commit

Permalink
Replace array.into_iter() with iter() in libtest/tests.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKalbertodt committed Nov 6, 2019
1 parent 8fd09d9 commit 761ba89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libtest/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 761ba89

Please sign in to comment.