From 1d88702bf1e77973de2ffe2747370d854f615a2e Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Fri, 19 Apr 2024 14:18:20 +0200 Subject: [PATCH] refactor: group_by is now stable under chunk_by --- src/main.rs | 2 -- src/paheko.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index a77201d..1f69643 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,3 @@ -#![feature(slice_group_by)] - mod utils; mod paheko; mod helloasso; diff --git a/src/paheko.rs b/src/paheko.rs index 99f5689..c48ae99 100644 --- a/src/paheko.rs +++ b/src/paheko.rs @@ -401,9 +401,9 @@ impl AuthentifiedClient { expiry_date: NaiveDate } let intermidiate: Vec = serde_json::from_value(val.results)?; - // regroup the row with the same id + // group the rows with the same id Ok(intermidiate - .group_by(|a,b| a.id == b.id) + .chunk_by(|a,b| a.id == b.id) .map(|rows| { let base = rows.first().unwrap();