From 602661372c921ef5079283ccd5f477c63977239f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 2 Dec 2024 19:53:16 +0100 Subject: Fix new `clippy` lints --- core/src/widget/operation.rs | 4 ++-- core/src/widget/text.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src/widget') diff --git a/core/src/widget/operation.rs b/core/src/widget/operation.rs index 097c3601..6bdb27f6 100644 --- a/core/src/widget/operation.rs +++ b/core/src/widget/operation.rs @@ -138,7 +138,7 @@ where operation: &'a mut dyn Operation, } - impl<'a, T, O> Operation for BlackBox<'a, T> { + impl Operation for BlackBox<'_, T> { fn container( &mut self, id: Option<&Id>, @@ -218,7 +218,7 @@ where operation: &'a mut dyn Operation, } - impl<'a, A, B> Operation for MapRef<'a, A> { + impl Operation for MapRef<'_, A> { fn container( &mut self, id: Option<&Id>, diff --git a/core/src/widget/text.rs b/core/src/widget/text.rs index b34c5632..d3d1cffd 100644 --- a/core/src/widget/text.rs +++ b/core/src/widget/text.rs @@ -206,8 +206,8 @@ where #[derive(Debug, Default)] pub struct State(pub paragraph::Plain

); -impl<'a, Message, Theme, Renderer> Widget - for Text<'a, Theme, Renderer> +impl Widget + for Text<'_, Theme, Renderer> where Theme: Catalog, Renderer: text::Renderer, -- cgit