Fix slice_group_by

This commit is contained in:
Austen Adler 2024-05-29 16:18:08 -04:00
parent 3450d899d7
commit 0d2a63001f
2 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,7 @@ pub fn invert(options: &Options) -> Result<String, KakError> {
// Split by multiline so subtraction is defined (see below) // Split by multiline so subtraction is defined (see below)
// Group by row, so for a given document row, subtraction can iterate over the Vec // Group by row, so for a given document row, subtraction can iterate over the Vec
get_selections_desc(Some("<a-s>"))? get_selections_desc(Some("<a-s>"))?
.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())) .map(|sds| (sds[0].left.row, sds.to_vec()))
.collect() .collect()
}; };

View File

@ -5,7 +5,6 @@
// Cannot be fixed // Cannot be fixed
#![allow(clippy::multiple_crate_versions)] #![allow(clippy::multiple_crate_versions)]
#![allow(clippy::struct_excessive_bools)] #![allow(clippy::struct_excessive_bools)]
#![feature(slice_group_by)]
#![feature(slice_take)] #![feature(slice_take)]
#![feature(array_chunks)] #![feature(array_chunks)]