Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Use slice::iter instead of into_iter to avoid future breakage #162

Merged
merged 1 commit into from
Nov 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/canonical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mod std_tests {
-65537,
-4294967296,
]
.into_iter()
.iter()
.map(|i| Value::Integer(*i))
.collect::<Vec<_>>();

Expand All @@ -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::<Vec<_>>();

Expand Down
2 changes: 1 addition & 1 deletion tests/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mod std_tests {
(format!("key3"), format!("value3")),
(format!("key4"), format!("value4")),
]
.into_iter()
.iter()
.cloned(),
);

Expand Down