diff options
Diffstat (limited to 'lazy/src/component.rs')
-rw-r--r-- | lazy/src/component.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lazy/src/component.rs b/lazy/src/component.rs index a39cd020..d8f21f8a 100644 --- a/lazy/src/component.rs +++ b/lazy/src/component.rs @@ -48,10 +48,12 @@ pub trait Component<Message, Renderer> { fn view(&self, state: &Self::State) -> Element<'_, Self::Event, Renderer>; /// Update the [`Component`] state based on the provided [`Operation`](widget::Operation) + /// + /// By default, it does nothing. fn operate( &self, - #[allow(unused)] state: &mut Self::State, - #[allow(unused)] operation: &mut dyn widget::Operation<Message>, + _state: &mut Self::State, + _operation: &mut dyn widget::Operation<Message>, ) { } } |