diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-20 07:09:41 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-20 07:28:42 +0900 |
| commit | 632ed8528c3566d67dda2804beb6d9e4e9511a72 (patch) | |
| tree | c11d3972666a6394eef79d679efe64cdb7e9eb4c /crates/shirabe/src/repository/installed_array_repository.rs | |
| parent | 63a77b1495944ad9707fe036a73f99eaec189897 (diff) | |
| download | php-shirabe-632ed8528c3566d67dda2804beb6d9e4e9511a72.tar.gz php-shirabe-632ed8528c3566d67dda2804beb6d9e4e9511a72.tar.zst php-shirabe-632ed8528c3566d67dda2804beb6d9e4e9511a72.zip | |
fix(require-command): drop input borrows before determine_requirements
The Ref temporaries created by input.borrow() inside the argument
expressions of the determine_requirements call lived until the end of
the whole call statement, so ConsoleIO::ask_question's borrow_mut() on
the same shared input RefCell panicked with "RefCell already borrowed"
when the command prompted for packages. Hoist the argument computations
into locals so no borrow is held across the call, and un-ignore the
run_require CLI test.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/repository/installed_array_repository.rs')
0 files changed, 0 insertions, 0 deletions
