From 6b29284f9d3b0a67a672511f5379d7a7218cd7c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Sep 2025 03:12:29 +0000 Subject: [PATCH] Fix code formatting issues to pass CI Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com> --- src/run/commands.rs | 2 +- tests/builtin_commands.rs | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/run/commands.rs b/src/run/commands.rs index 8d8f519..0e4c8ed 100644 --- a/src/run/commands.rs +++ b/src/run/commands.rs @@ -272,7 +272,7 @@ impl TestEnvironment { /// Create a symbolic link pub fn create_symlink(&self, target: &str, link_name: &str) -> Result<()> { let link_path = self.work_dir.join(link_name); - + #[cfg(unix)] { // For Unix systems, preserve the target path as-is to support relative links diff --git a/tests/builtin_commands.rs b/tests/builtin_commands.rs index 9e18449..e889464 100644 --- a/tests/builtin_commands.rs +++ b/tests/builtin_commands.rs @@ -218,7 +218,11 @@ exec ls link_dir"#; fs::write(&script_path, script_content).unwrap(); let result = run_test(&script_path); - assert!(result.is_ok(), "Directory symlink test failed: {:?}", result); + assert!( + result.is_ok(), + "Directory symlink test failed: {:?}", + result + ); } #[cfg(unix)] @@ -240,7 +244,11 @@ relative content"#; fs::write(&script_path, script_content).unwrap(); let result = run_test(&script_path); - assert!(result.is_ok(), "Relative path symlink test failed: {:?}", result); + assert!( + result.is_ok(), + "Relative path symlink test failed: {:?}", + result + ); } #[test]