diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-27 04:52:00 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-27 04:53:28 +0900 |
| commit | 6d53dd16759df8b2cde09047ddcf460652034fd9 (patch) | |
| tree | d4ad457fd261919b54e2a92c37630b3d2b8d5c57 /crates/shirabe/src/command/run_script_command.rs | |
| parent | f07202e69b389759cebed5a203756a1c66177e37 (diff) | |
| download | php-shirabe-6d53dd16759df8b2cde09047ddcf460652034fd9.tar.gz php-shirabe-6d53dd16759df8b2cde09047ddcf460652034fd9.tar.zst php-shirabe-6d53dd16759df8b2cde09047ddcf460652034fd9.zip | |
refactor(command): replace composer_full_mut with shared composer_full
The compiler confirms none of the call sites invoke a &mut self method
on the returned Composer, so the exclusive RefMut borrow was never
needed and only risked borrow check conflict. Switch every site to the
shared composer_full borrow and drop the now-dead composer_full_mut
helper.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/run_script_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/run_script_command.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/command/run_script_command.rs b/crates/shirabe/src/command/run_script_command.rs index 7d37959..a85bb4e 100644 --- a/crates/shirabe/src/command/run_script_command.rs +++ b/crates/shirabe/src/command/run_script_command.rs @@ -84,7 +84,7 @@ impl RunScriptCommand { fn get_scripts(&self) -> Result<Vec<(String, String)>> { let composer = self.require_composer(None, None)?; - let scripts = crate::command::composer_full(&composer) + let scripts = crate::composer::composer_full(&composer) .get_package() .get_scripts(); drop(composer); @@ -257,7 +257,7 @@ impl Command for RunScriptCommand { } let composer = self.require_composer(None, None)?; - let dispatcher = crate::command::composer_full(&composer) + let dispatcher = crate::composer::composer_full(&composer) .get_event_dispatcher() .clone(); let dev_mode = input.borrow().get_option("dev")?.as_bool().unwrap_or(false) |
