From a8f115666344abe3b606a4a65595ca301e7ac08a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 24 Jun 2026 21:10:48 +0900 Subject: refactor(process): take cwd as Option<&str> instead of IntoExecCwd Replace the generic cwd parameter backed by the IntoExecCwd trait with a concrete Option<&str> across execute/execute_args/execute_tty/execute_async. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/downloader/hg_downloader.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/downloader/hg_downloader.rs') diff --git a/crates/shirabe/src/downloader/hg_downloader.rs b/crates/shirabe/src/downloader/hg_downloader.rs index 16a78a0..650746b 100644 --- a/crates/shirabe/src/downloader/hg_downloader.rs +++ b/crates/shirabe/src/downloader/hg_downloader.rs @@ -114,7 +114,7 @@ impl VcsDownloader for HgDownloader { if self.inner.process.borrow_mut().execute_args( &command, &mut ignored_output, - shirabe_php_shim::realpath(path), + shirabe_php_shim::realpath(path).as_deref(), ) != 0 { return Err(RuntimeException { @@ -201,7 +201,7 @@ impl VcsDownloader for HgDownloader { if self.inner.process.borrow_mut().execute_args( &command, &mut output, - shirabe_php_shim::realpath(path), + shirabe_php_shim::realpath(path).as_deref(), ) != 0 { return Err(RuntimeException { @@ -237,7 +237,7 @@ impl ChangeReportInterface for HgDownloader { self.inner.process.borrow_mut().execute_args( &["hg".to_string(), "st".to_string()], &mut output, - shirabe_php_shim::realpath(path), + shirabe_php_shim::realpath(path).as_deref(), ); let output = output.trim().to_string(); -- cgit v1.3.1