Merge pull request #6455 from cakebaker/bump_itertools

Bump `itertools` and fix use of deprecated function
This commit is contained in:
Sylvestre Ledru 2024-06-14 12:43:44 +02:00 committed by GitHub
commit 82468d1eb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 7 deletions

19
Cargo.lock generated
View file

@ -165,7 +165,7 @@ dependencies = [
"bitflags 2.5.0",
"cexpr",
"clang-sys",
"itertools",
"itertools 0.12.1",
"lazy_static",
"lazycell",
"log",
@ -1245,6 +1245,15 @@ dependencies = [
"either",
]
[[package]]
name = "itertools"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.4"
@ -2990,7 +2999,7 @@ version = "0.0.26"
dependencies = [
"chrono",
"clap",
"itertools",
"itertools 0.13.0",
"quick-error",
"regex",
"uucore",
@ -3126,7 +3135,7 @@ dependencies = [
"compare",
"ctrlc",
"fnv",
"itertools",
"itertools 0.13.0",
"memchr",
"rand",
"rayon",
@ -3407,7 +3416,7 @@ name = "uu_yes"
version = "0.0.26"
dependencies = [
"clap",
"itertools",
"itertools 0.13.0",
"nix",
"uucore",
]
@ -3426,7 +3435,7 @@ dependencies = [
"dunce",
"glob",
"hex",
"itertools",
"itertools 0.13.0",
"libc",
"md-5",
"memchr",

View file

@ -288,7 +288,7 @@ glob = "0.3.1"
half = "2.4.1"
hostname = "0.4"
indicatif = "0.17.8"
itertools = "0.12.1"
itertools = "0.13.0"
libc = "0.2.153"
lscolors = { version = "0.16.0", default-features = false, features = [
"gnu_legacy",

View file

@ -102,6 +102,8 @@ skip = [
{ name = "terminal_size", version = "0.2.6" },
# filetime, parking_lot_core
{ name = "redox_syscall", version = "0.4.1" },
# bindgen
{ name = "itertools", version = "0.12.1" },
]
# spell-checker: enable

View file

@ -956,7 +956,7 @@ fn mpr(paths: &[&str], options: &OutputOptions) -> Result<i32, PrError> {
a.group_key < b.group_key
}
})
.group_by(|file_line| file_line.group_key);
.chunk_by(|file_line| file_line.group_key);
let start_page = options.start_page;
let mut lines = Vec::new();