From 0e2e1b8a306a7fc728ec225f35e77af4a3448809 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Fri, 14 Jun 2024 11:25:56 +1000 Subject: [PATCH] chore: Cleanup compiler deprecation warnings --- rust/pact_verifier/src/lib.rs | 2 +- rust/pact_verifier/src/pact_broker.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/pact_verifier/src/lib.rs b/rust/pact_verifier/src/lib.rs index 26b7b9f7b..9b4af63e4 100644 --- a/rust/pact_verifier/src/lib.rs +++ b/rust/pact_verifier/src/lib.rs @@ -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() })); diff --git a/rust/pact_verifier/src/pact_broker.rs b/rust/pact_verifier/src/pact_broker.rs index 318490948..493aae207 100644 --- a/rust/pact_verifier/src/pact_broker.rs +++ b/rust/pact_verifier/src/pact_broker.rs @@ -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, Vec, Option) = (vec![], vec![], None);