Skip to content

Commit

Permalink
fix: change deprecated method group_by -> chunk_by
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed May 20, 2024
1 parent bc4db13 commit 12cb645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plot/gnuplot_backend/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn line_comparison(
// This assumes the curves are sorted. It also assumes that the benchmark IDs all have numeric
// values or throughputs and that value is sensible (ie. not a mix of bytes and elements
// or whatnot)
for (key, group) in &all_curves.iter().group_by(|&&&(id, _)| &id.function_id) {
for (key, group) in &all_curves.iter().chunk_by(|&&&(id, _)| &id.function_id) {
let mut tuples: Vec<_> = group
.map(|&&(id, ref sample)| {
// Unwrap is fine here because it will only fail if the assumptions above are not true
Expand Down
2 changes: 1 addition & 1 deletion src/plot/plotters_backend/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn line_comparison_series_data<'a>(
// This assumes the curves are sorted. It also assumes that the benchmark IDs all have numeric
// values or throughputs and that value is sensible (ie. not a mix of bytes and elements
// or whatnot)
for (key, group) in &all_curves.iter().group_by(|&&&(id, _)| &id.function_id) {
for (key, group) in &all_curves.iter().chunk_by(|&&&(id, _)| &id.function_id) {
let mut tuples: Vec<_> = group
.map(|&&(id, ref sample)| {
// Unwrap is fine here because it will only fail if the assumptions above are not true
Expand Down

0 comments on commit 12cb645

Please sign in to comment.