diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-06 20:03:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-06 20:03:54 +0900 |
| commit | 87f7f1b0f875e9cf26b84bd45dd48226a33749cb (patch) | |
| tree | 1f6f32a209422c8e973b7f5f4e696e09d1cb88c7 /crates/shirabe/src/command/search_command.rs | |
| parent | 8ae5842647eb9be63e662d11cea7268f5ecb0202 (diff) | |
| download | php-shirabe-87f7f1b0f875e9cf26b84bd45dd48226a33749cb.tar.gz php-shirabe-87f7f1b0f875e9cf26b84bd45dd48226a33749cb.tar.zst php-shirabe-87f7f1b0f875e9cf26b84bd45dd48226a33749cb.zip | |
feat(archive-command): wire up ArchiveManager.archive call
Replace the phase-b todo!() with the real ArchiveManager.archive
invocation by taking the manager via mutable borrow (borrow_mut for the
composer-owned RefCell, &mut for the locally created one). Also drop the
stale get_io clone_box TODOs in archive and search commands, reusing the
already-fetched io handle in search.
Diffstat (limited to 'crates/shirabe/src/command/search_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/search_command.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/shirabe/src/command/search_command.rs b/crates/shirabe/src/command/search_command.rs index 7149db7..bf68b2d 100644 --- a/crates/shirabe/src/command/search_command.rs +++ b/crates/shirabe/src/command/search_command.rs @@ -75,9 +75,7 @@ impl SearchCommand { let composer = if let Some(c) = self.try_composer(None, None) { c } else { - // TODO(phase-b): clone_box to release self borrow held by get_io. - let io_box = self.get_io().clone(); - self.create_composer_instance(input.clone(), io_box, None, false, None)? + self.create_composer_instance(input.clone(), io.clone(), None, false, None)? }; let composer_ref = crate::command::composer_full(&composer); let local_repo = composer_ref |
