aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/event_dispatcher
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-04 21:08:22 +0900
committernsfisis <nsfisis@gmail.com>2026-06-04 21:08:22 +0900
commita9f19862350c6fd3592d93515d869ffe07ecb399 (patch)
tree3d2e97403d658476e9e42a1d179cd29b606240e2 /crates/shirabe/src/event_dispatcher
parentc935842b0c0c2d2c62b3a718ebe0017b7b192318 (diff)
downloadphp-shirabe-a9f19862350c6fd3592d93515d869ffe07ecb399.tar.gz
php-shirabe-a9f19862350c6fd3592d93515d869ffe07ecb399.tar.zst
php-shirabe-a9f19862350c6fd3592d93515d869ffe07ecb399.zip
feat: resolve trivial todo!() sites with existing constructors
Replace todo!("VersionParser::new()") with VersionParser::new() at 6 call sites (array_loader, base_command, create_project_command, vcs_repository, http_downloader x2) and EventDispatcher::io_clone with self.io.clone(). All targets already exist on their types. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/event_dispatcher')
-rw-r--r--crates/shirabe/src/event_dispatcher/event_dispatcher.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/shirabe/src/event_dispatcher/event_dispatcher.rs b/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
index 175b689..77d016b 100644
--- a/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
+++ b/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
@@ -1307,8 +1307,7 @@ impl EventDispatcher {
// ---- helpers ----
fn io_clone(&self) -> std::rc::Rc<std::cell::RefCell<dyn IOInterface>> {
- // TODO(phase-b): IOInterface is not Clone — placeholder until io ownership is resolved.
- todo!("clone std::rc::Rc<std::cell::RefCell<dyn IOInterface>>")
+ self.io.clone()
}
fn composer(&self) -> PartialComposerHandle {