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();