diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-27 04:34:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-27 04:35:36 +0900 |
| commit | f07202e69b389759cebed5a203756a1c66177e37 (patch) | |
| tree | 566fe68fa3b8b76ae64f40f9d92b11a3ef6c2a0b /crates/shirabe/src/command | |
| parent | 2b51554ff59d1e5cbf8dd2db65d278b0202a9102 (diff) | |
| download | php-shirabe-f07202e69b389759cebed5a203756a1c66177e37.tar.gz php-shirabe-f07202e69b389759cebed5a203756a1c66177e37.tar.zst php-shirabe-f07202e69b389759cebed5a203756a1c66177e37.zip | |
fix(validate-command): release Composer borrow before dispatching CommandEvent
Holding a RefMut<Composer> across execute() conflicted with the shared
borrow taken inside EventDispatcher::get_script_listeners, panicking with
"RefCell already mutably borrowed". All accessors used here take &self, so
a shared borrow suffices.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command')
| -rw-r--r-- | crates/shirabe/src/command/validate_command.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe/src/command/validate_command.rs b/crates/shirabe/src/command/validate_command.rs index 89c83eb..f44a942 100644 --- a/crates/shirabe/src/command/validate_command.rs +++ b/crates/shirabe/src/command/validate_command.rs @@ -197,7 +197,7 @@ impl Command for ValidateCommand { let mut lock_errors: Vec<String> = vec![]; let composer = self.create_composer_instance(input.clone(), io.clone(), None, false, None)?; - let composer = crate::command::composer_full_mut(&composer); + let composer = crate::command::composer_full(&composer); let check_lock = (check_lock && composer .get_config() |
