From cec28e2ef52011859481d1fcaae74bfe9b71d26c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 2 Jan 2023 19:32:47 +0100 Subject: Prefix `_` instead of `allow(unused)` in `Component` trait --- lazy/src/component.rs | 6 ++++-- 1 file 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 { 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, ) { } } -- cgit