Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 683f51c

Browse files
committed
clippy
1 parent b73d942 commit 683f51c

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
128128
#![warn(clippy::all, clippy::cargo, clippy::pedantic)]
129129
#![allow(clippy::module_name_repetitions)] // Allows for better API naming
130+
#![allow(clippy::multiple_crate_versions)] // Transitive dependency versions may differ
130131

131132
pub mod constant;
132133
pub mod data;

src/tc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ pub mod test {
863863
#[must_use]
864864
pub fn execution_result_with_values(values: Vec<RuntimeBoxedVal>) -> ExecutionResult {
865865
let mut state_with_values = VMState::new(0, 0, Config::default());
866-
for v in values.into_iter() {
866+
for v in values {
867867
state_with_values.record_value(v);
868868
}
869869

src/tc/unification.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ mod test {
716716
// Check that they combine properly, and produce the same result no matter the
717717
// order
718718
for permutation in inference_permutations {
719-
for i in permutation.into_iter() {
719+
for i in permutation {
720720
state.infer(v_1_tv, i.clone());
721721
}
722722

@@ -751,7 +751,7 @@ mod test {
751751
// Check that they combine properly, and produce the same result no matter the
752752
// order
753753
for permutation in inference_permutations {
754-
for i in permutation.into_iter() {
754+
for i in permutation {
755755
state.infer(v_1_tv, i.clone());
756756
}
757757

@@ -782,7 +782,7 @@ mod test {
782782
// Check that they combine properly, and produce the same error no matter the
783783
// order
784784
for permutation in permutations {
785-
for i in permutation.into_iter() {
785+
for i in permutation {
786786
state.infer(v_1_ty, i.clone());
787787
}
788788

@@ -817,7 +817,7 @@ mod test {
817817
// Check that they combine properly, and produce the same result no matter the
818818
// order
819819
for permutation in permutations {
820-
for i in permutation.into_iter() {
820+
for i in permutation {
821821
state.infer(array_tv, i.clone());
822822
}
823823

@@ -857,7 +857,7 @@ mod test {
857857
// Check that they combine properly, and produce the same result no matter the
858858
// order
859859
for permutation in permutations {
860-
for i in permutation.into_iter() {
860+
for i in permutation {
861861
state.infer(array_tv, i.clone());
862862
}
863863

@@ -896,7 +896,7 @@ mod test {
896896
// Check that we get the same result, and that they combine properly
897897
for permutation in permutations {
898898
// Register the array inferences in the state
899-
for i in permutation.into_iter() {
899+
for i in permutation {
900900
state.infer(array_tv, i.clone());
901901
}
902902

@@ -940,7 +940,7 @@ mod test {
940940
// Check that we get the same result, and that they combine properly
941941
for permutation in permutations {
942942
// Register the array inferences in the state
943-
for i in permutation.into_iter() {
943+
for i in permutation {
944944
state.infer(array_tv, i.clone());
945945
}
946946

@@ -995,7 +995,7 @@ mod test {
995995
// Check that we get the same result, and that they combine properly
996996
for permutation in permutations {
997997
// Register the array inferences in the state
998-
for i in permutation.into_iter() {
998+
for i in permutation {
999999
state.infer(array_tv, i.clone());
10001000
}
10011001

@@ -1046,7 +1046,7 @@ mod test {
10461046
// Check that we get the same result, and that they combine properly
10471047
for permutation in permutations {
10481048
// Register the array inferences in the state
1049-
for i in permutation.into_iter() {
1049+
for i in permutation {
10501050
state.infer(array_tv, i.clone());
10511051
}
10521052

@@ -1099,7 +1099,7 @@ mod test {
10991099
// Check that we get the same result, and that they combine properly
11001100
for permutation in permutations {
11011101
// Register the array inferences in the state
1102-
for i in permutation.into_iter() {
1102+
for i in permutation {
11031103
state.infer(array_tv, i.clone());
11041104
}
11051105

0 commit comments

Comments
 (0)