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/svn_downloader.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'crates/shirabe/src/downloader/svn_downloader.rs') diff --git a/crates/shirabe/src/downloader/svn_downloader.rs b/crates/shirabe/src/downloader/svn_downloader.rs index 6aed27a..1a7d81d 100644 --- a/crates/shirabe/src/downloader/svn_downloader.rs +++ b/crates/shirabe/src/downloader/svn_downloader.rs @@ -69,7 +69,7 @@ impl SvnDownloader { if self.inner.process.borrow_mut().execute_args( ["svn", "revert", "-R", "."].map(|s| s.to_string()).as_ref(), &mut output, - Some(path.to_string()), + Some(path), ) != 0 { return Err(RuntimeException { @@ -378,11 +378,12 @@ impl VcsDownloader for SvnDownloader { path.to_string(), ]; let mut output = String::new(); - if self.inner.process.borrow_mut().execute_args( - &command, - &mut output, - Some(path.to_string()), - ) != 0 + if self + .inner + .process + .borrow_mut() + .execute_args(&command, &mut output, Some(path)) + != 0 { return Err(RuntimeException { message: format!( @@ -466,7 +467,7 @@ impl ChangeReportInterface for SvnDownloader { .map(|s| s.to_string()) .as_ref(), &mut output, - Some(path.to_string()), + Some(path), ); Ok(if Preg::is_match("{^ *[^X ] +}m", &output) { -- cgit v1.3.1