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 { 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, + _state: &mut Self::State, + _operation: &mut dyn widget::Operation, ) { } }