1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

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

View file

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

View file

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

View file

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