Skip to content

Commit

Permalink
chore: bump itertools (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored Jun 1, 2024
1 parent 62e67fa commit 7552338
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 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 @@ -72,7 +72,7 @@ indenter = "0.3.3"
indexmap = { version = "2.2.6", features = ["serde"] }
indicatif = { version = "0.17.8", features = ["default", "improved_unicode"] }
indoc = "2.0.5"
itertools = "0.12.1"
itertools = "0.13"
log = "0.4.21"
num_cpus = "1.16.0"
once_cell = "1.19.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cli/asdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn list_versions(config: &Config, args: &[String]) -> Result<()> {
miseprintln!("{}", version.version);
}
} else {
for (plugin, versions) in &versions.into_iter().group_by(|(_, v)| v.backend.clone()) {
for (plugin, versions) in &versions.into_iter().chunk_by(|(_, v)| v.backend.clone()) {
miseprintln!("{}", plugin);
for (_, tv) in versions {
miseprintln!(" {}", tv.version);
Expand Down
2 changes: 1 addition & 1 deletion src/cli/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl Ls {
let mut plugins = JSONOutput::new();
for (plugin_name, runtimes) in &runtimes
.into_iter()
.group_by(|(p, _, _)| p.id().to_string())
.chunk_by(|(p, _, _)| p.id().to_string())
{
let runtimes = runtimes.map(|row| row.into()).collect();
plugins.insert(plugin_name.clone(), runtimes);
Expand Down
2 changes: 1 addition & 1 deletion src/cli/use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Use {
let settings = Settings::try_get()?;
let pin = self.pin || (settings.asdf_compat && !self.fuzzy);

for (fa, tvl) in &versions.iter().group_by(|tv| &tv.backend) {
for (fa, tvl) in &versions.iter().chunk_by(|tv| &tv.backend) {
let versions: Vec<String> = tvl
.into_iter()
.map(|tv| {
Expand Down
2 changes: 1 addition & 1 deletion src/toolset/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl Toolset {
let queue: Vec<_> = versions
.into_iter()
.rev()
.group_by(|v| v.backend().clone())
.chunk_by(|v| v.backend().clone())
.into_iter()
.map(|(fa, v)| (backend::get(&fa), v.collect_vec()))
.collect();
Expand Down

0 comments on commit 7552338

Please sign in to comment.