From e72397232eb7e51d165de88e36379e3144d91bfa Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sun, 10 Aug 2025 00:53:48 +0400 Subject: [PATCH] chore: linting --- src/bundler.rs | 3 +++ tests/common/mod.rs | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bundler.rs b/src/bundler.rs index 866d4a2..572614e 100644 --- a/src/bundler.rs +++ b/src/bundler.rs @@ -65,6 +65,9 @@ pub async fn bundle_project( plat = Platform::current() ); + // Emit a plain stdout line so tests (and users without verbose logging) can detect the exact Node.js version + println!("Node.js v{node_version}"); + if source_dir != project_path { debug!("Using source directory: {}", source_dir.display()); } diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 70b7721..116707c 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -680,12 +680,12 @@ impl BundlerTestHelper { #[cfg(windows)] let (exec_path_owned, _temp_guard) = { let tmp = TempDir::new().context("Failed to create temp dir for executable copy")?; - let file_name = executable_path - .file_name() - .ok_or_else(|| anyhow::anyhow!( + let file_name = executable_path.file_name().ok_or_else(|| { + anyhow::anyhow!( "Executable path missing file name: {}", executable_path.display() - ))?; + ) + })?; let dest = tmp.path().join(file_name); std::fs::copy(executable_path, &dest).with_context(|| { format!(