summaryrefslogtreecommitdiffstats
path: root/lazy
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-02 19:32:47 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-02 19:32:47 +0100
commitcec28e2ef52011859481d1fcaae74bfe9b71d26c (patch)
treeda93e681d501a60f88e66ba29594e641b52ceb2e /lazy
parent8d5fba8a1f09e9b5f6796618cfe9da4154a0dcbd (diff)
downloadiced-cec28e2ef52011859481d1fcaae74bfe9b71d26c.tar.gz
iced-cec28e2ef52011859481d1fcaae74bfe9b71d26c.tar.bz2
iced-cec28e2ef52011859481d1fcaae74bfe9b71d26c.zip
Prefix `_` instead of `allow(unused)` in `Component` trait
Diffstat (limited to 'lazy')
-rw-r--r--lazy/src/component.rs6
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>,
) {
}
}