From 0c5e8ab544823fbb4936c536ee1d8a66298f7e51 Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Mon, 11 Mar 2024 09:21:46 -0400 Subject: Pass actions to components --- src/component.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/component.rs') diff --git a/src/component.rs b/src/component.rs index 8ec7d26..65d865c 100644 --- a/src/component.rs +++ b/src/component.rs @@ -10,6 +10,9 @@ pub trait Component { Ok(()) } + #[allow(unused)] + fn handle_action(&mut self, action: AppAction) {} + #[allow(unused)] fn handle_event(&mut self, event: AppEvent) -> Result> { match event { -- cgit v1.2.3