From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/plugin/pre_command_run_event.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'crates/shirabe/src/plugin/pre_command_run_event.rs') diff --git a/crates/shirabe/src/plugin/pre_command_run_event.rs b/crates/shirabe/src/plugin/pre_command_run_event.rs index 40672c0..7a8b2f1 100644 --- a/crates/shirabe/src/plugin/pre_command_run_event.rs +++ b/crates/shirabe/src/plugin/pre_command_run_event.rs @@ -4,24 +4,21 @@ use crate::event_dispatcher::event::Event; use shirabe_external_packages::symfony::console::input::input_interface::InputInterface; +#[derive(Debug)] pub struct PreCommandRunEvent { inner: Event, - input: Box, command: String, } impl PreCommandRunEvent { - pub fn new(name: String, input: Box, command: String) -> Self { - let inner = Event::new(name); - Self { - inner, - input, - command, - } + // TODO(phase-b): input dropped because storing a &dyn reference would need lifetime params. + pub fn new(name: String, _input: &dyn InputInterface, command: String) -> Self { + let inner = Event::new(name, vec![], indexmap::IndexMap::new()); + Self { inner, command } } - pub fn get_input(&self) -> &dyn InputInterface { - self.input.as_ref() + pub fn get_name(&self) -> &str { + self.inner.get_name() } pub fn get_command(&self) -> &str { -- cgit v1.3.1