Skip to content

Commit 761ba89

Browse files
Replace array.into_iter() with iter() in libtest/tests.rs
1 parent 8fd09d9 commit 761ba89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libtest/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ fn time_test_failure_template(test_type: TestType) -> TestResult {
269269
fn test_error_on_exceed() {
270270
let types = [TestType::UnitTest, TestType::IntegrationTest, TestType::DocTest];
271271

272-
for test_type in types.into_iter() {
272+
for test_type in types.iter() {
273273
let result = time_test_failure_template(*test_type);
274274

275275
assert_eq!(result, TestResult::TrTimedFail);
@@ -320,7 +320,7 @@ fn test_time_options_threshold() {
320320
(TestType::DocTest, doc.critical.as_millis(), true, true),
321321
];
322322

323-
for (test_type, time, expected_warn, expected_critical) in test_vector.into_iter() {
323+
for (test_type, time, expected_warn, expected_critical) in test_vector.iter() {
324324
let test_desc = typed_test_desc(*test_type);
325325
let exec_time = test_exec_time(*time as u64);
326326

0 commit comments

Comments
 (0)