diff --git a/tools/rust_analyzer/aquery.rs b/tools/rust_analyzer/aquery.rs index 1228238c9..bc98913b0 100644 --- a/tools/rust_analyzer/aquery.rs +++ b/tools/rust_analyzer/aquery.rs @@ -69,11 +69,7 @@ pub fn get_crate_specs( rules_rust_name: &str, ) -> anyhow::Result> { log::debug!("Get crate specs with targets: {:?}", targets); - let target_pattern = targets - .iter() - .map(|t| format!("deps({t})")) - .collect::>() - .join("+"); + let target_pattern = format!("deps({})", targets.join("+")); let aquery_output = Command::new(bazel) .current_dir(workspace)