Fix slice_group_by
This commit is contained in:
parent
3450d899d7
commit
0d2a63001f
@ -16,7 +16,7 @@ pub fn invert(options: &Options) -> Result<String, KakError> {
|
||||
// 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("<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()))
|
||||
.collect()
|
||||
};
|
||||
|
@ -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)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user