Skip to content

Commit

Permalink
chore: Cleanup compiler deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Jun 14, 2024
1 parent dad482f commit 0e2e1b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/pact_verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ pub fn interaction_mismatch_output(
output.push(format!("{}) {}", i + 1, description));

let mut j = 1;
for (_, mut mismatches) in &mismatches.into_iter().group_by(|m| m.mismatch_type()) {
for (_, mut mismatches) in &mismatches.into_iter().chunk_by(|m| m.mismatch_type()) {
let mismatch = mismatches.next().unwrap();
output.push(format!(" {}.{}) {}", i + 1, j, mismatch.summary()));
output.push(format!(" {}", if coloured_output { mismatch.ansi_description() } else { mismatch.description() }));
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_verifier/src/pact_broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ fn build_payload(
match result {
TestResult::Failed(mismatches) => {
let values = mismatches.iter()
.group_by(|(id, _, _)| id.clone().unwrap_or_default())
.chunk_by(|(id, _, _)| id.clone().unwrap_or_default())
.into_iter()
.map(|(key, mismatches)| {
let acc: (Vec<serde_json::Value>, Vec<serde_json::Value>, Option<String>) = (vec![], vec![], None);
Expand Down

0 comments on commit 0e2e1b8

Please sign in to comment.