This is an automated email from the ASF dual-hosted git repository.
HyukjinKwon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark-connect-rust.git
The following commit(s) were added to refs/heads/master by this push:
new 4250735f [SPARK-61587][FOLLOWUP][CONNECT][BUILD] Format the proc-macro
search of the build helper with rustfmt
4250735f is described below
commit 4250735fd643e3310bfa106e9c39f7cebd23f3c3
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Fri Nov 13 08:28:25 2026 +0900
[SPARK-61587][FOLLOWUP][CONNECT][BUILD] Format the proc-macro search of the
build helper with rustfmt
### What changes were proposed in this pull request?
A follow-up of #580 (SPARK-61587). Its search of the units of the
proc-macro package in `crates/spark-connect-build/src/lib.rs` was not formatted
with rustfmt, which `cargo fmt --all --check` of the lint job checks. This
formats it.
### Why are the changes needed?
To pass the lint job of CI.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
`cargo fmt --all --check`.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5.5
This pull request and its description were written by Isaac.
Closes #581 from HyukjinKwon/SPARK-61587-followup.
Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
crates/spark-connect-build/src/lib.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/crates/spark-connect-build/src/lib.rs
b/crates/spark-connect-build/src/lib.rs
index dd7a1fcf..88e11f42 100644
--- a/crates/spark-connect-build/src/lib.rs
+++ b/crates/spark-connect-build/src/lib.rs
@@ -503,7 +503,10 @@ fn proc_macro_dirs(out_dir: &Path, package: &str) ->
Vec<PathBuf> {
};
let mut dirs = vec![base.join("deps")];
if let Ok(units) = std::fs::read_dir(base.join(package)) {
- let mut units: Vec<PathBuf> = units.flatten().map(|unit|
unit.path().join("out")).collect();
+ let mut units: Vec<PathBuf> = units
+ .flatten()
+ .map(|unit| unit.path().join("out"))
+ .collect();
units.sort();
dirs.extend(units);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]