Skip to content

Commit

Permalink
itertools 0.13. Use non-deprecated chunk_by instead of group_by.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronriekenberg committed Aug 1, 2024
1 parent d52fdba commit de4ba95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repository = "https://github.com/aaronriekenberg/rust-parallel"
anyhow = "1"
clap = { version = "4", features = ["derive"] }
indicatif = "0.17"
itertools = "0.12"
itertools = "0.13"
num_cpus = "1"
regex = "1"
thiserror = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/parser/command_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl CommandLineArgsParser {

for (separator, group) in &command_and_initial_arguments
.iter()
.group_by(|arg| *arg == COMMANDS_FROM_ARGS_SEPARATOR)
.chunk_by(|arg| *arg == COMMANDS_FROM_ARGS_SEPARATOR)
{
let group_vec = group.cloned().collect();

Expand Down
2 changes: 1 addition & 1 deletion src/parser/regex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl AutoCommandLineArgsRegex {
for (separator, _group) in &command_line_args
.command_and_initial_arguments
.iter()
.group_by(|arg| *arg == COMMANDS_FROM_ARGS_SEPARATOR)
.chunk_by(|arg| *arg == COMMANDS_FROM_ARGS_SEPARATOR)
{
if first {
if separator {
Expand Down

0 comments on commit de4ba95

Please sign in to comment.