From 0d2a63001fcf264dfd59c71589100e8c81edd1bb Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 29 May 2024 16:18:08 -0400 Subject: [PATCH] Fix slice_group_by --- src/invert.rs | 2 +- src/main.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/invert.rs b/src/invert.rs index 460faf8..b2222f4 100644 --- a/src/invert.rs +++ b/src/invert.rs @@ -16,7 +16,7 @@ pub fn invert(options: &Options) -> Result { // Split by multiline so subtraction is defined (see below) // Group by row, so for a given document row, subtraction can iterate over the Vec get_selections_desc(Some(""))? - .group_by(|a, b| a.left.row == b.left.row) + .chunk_by(|a, b| a.left.row == b.left.row) .map(|sds| (sds[0].left.row, sds.to_vec())) .collect() }; diff --git a/src/main.rs b/src/main.rs index f6730d2..c18de12 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,6 @@ // Cannot be fixed #![allow(clippy::multiple_crate_versions)] #![allow(clippy::struct_excessive_bools)] -#![feature(slice_group_by)] #![feature(slice_take)] #![feature(array_chunks)]