diff --git a/tests/canonical.rs b/tests/canonical.rs index 578aa023..438e29e7 100644 --- a/tests/canonical.rs +++ b/tests/canonical.rs @@ -22,7 +22,7 @@ mod std_tests { -65537, -4294967296, ] - .into_iter() + .iter() .map(|i| Value::Integer(*i)) .collect::>(); @@ -35,7 +35,7 @@ mod std_tests { #[test] fn string_canonical_sort_order() { let expected = ["", "a", "b", "aa"] - .into_iter() + .iter() .map(|s| Value::Text(s.to_string())) .collect::>(); diff --git a/tests/value.rs b/tests/value.rs index 404a7ea7..554d7426 100644 --- a/tests/value.rs +++ b/tests/value.rs @@ -39,7 +39,7 @@ mod std_tests { (format!("key3"), format!("value3")), (format!("key4"), format!("value4")), ] - .into_iter() + .iter() .cloned(), );