From 75523385ad308f445b76b0487e08a6e6718e4b39 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Sat, 1 Jun 2024 22:35:42 +0000 Subject: [PATCH] chore: bump itertools (#2238) --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- src/cli/asdf.rs | 2 +- src/cli/ls.rs | 2 +- src/cli/use.rs | 2 +- src/toolset/mod.rs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b85e846cb..1385b5bcb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1672,7 +1672,7 @@ dependencies = [ "indicatif", "indoc", "insta", - "itertools 0.12.1", + "itertools 0.13.0", "log", "num_cpus", "once_cell", @@ -2791,11 +2791,11 @@ dependencies = [ [[package]] name = "strum_macros" -version = "0.26.2" +version = "0.26.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6cf59daf282c0a494ba14fd21610a0325f9f90ec9d1231dea26bcb1d696c946" +checksum = "f7993a8e3a9e88a00351486baae9522c91b123a088f76469e5bd5cc17198ea87" dependencies = [ - "heck 0.4.1", + "heck 0.5.0", "proc-macro2", "quote", "rustversion", diff --git a/Cargo.toml b/Cargo.toml index 1321f4077..00ad615ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/cli/asdf.rs b/src/cli/asdf.rs index 5db824142..fb9a16b64 100644 --- a/src/cli/asdf.rs +++ b/src/cli/asdf.rs @@ -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); diff --git a/src/cli/ls.rs b/src/cli/ls.rs index 3603fd691..8477583f8 100644 --- a/src/cli/ls.rs +++ b/src/cli/ls.rs @@ -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); diff --git a/src/cli/use.rs b/src/cli/use.rs index e40092cc0..8ebea409c 100644 --- a/src/cli/use.rs +++ b/src/cli/use.rs @@ -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 = tvl .into_iter() .map(|tv| { diff --git a/src/toolset/mod.rs b/src/toolset/mod.rs index 0dc42536c..83969a5a4 100644 --- a/src/toolset/mod.rs +++ b/src/toolset/mod.rs @@ -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();