diff options
author | 2024-12-02 19:53:16 +0100 | |
---|---|---|
committer | 2024-12-02 19:56:27 +0100 | |
commit | 602661372c921ef5079283ccd5f477c63977239f (patch) | |
tree | 1dfc3dc27986a2f0e8700b887a6dab8a1b3b77bc /core/src/widget | |
parent | e8f8216ea1f9deef7f2d02fa2600a0b4e247f8fa (diff) | |
download | iced-602661372c921ef5079283ccd5f477c63977239f.tar.gz iced-602661372c921ef5079283ccd5f477c63977239f.tar.bz2 iced-602661372c921ef5079283ccd5f477c63977239f.zip |
Fix new `clippy` lints
Diffstat (limited to 'core/src/widget')
-rw-r--r-- | core/src/widget/operation.rs | 4 | ||||
-rw-r--r-- | core/src/widget/text.rs | 4 |
2 files changed, 4 insertions, 4 deletions
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<T>, } - impl<'a, T, O> Operation<O> for BlackBox<'a, T> { + impl<T, O> Operation<O> for BlackBox<'_, T> { fn container( &mut self, id: Option<&Id>, @@ -218,7 +218,7 @@ where operation: &'a mut dyn Operation<A>, } - impl<'a, A, B> Operation<B> for MapRef<'a, A> { + impl<A, B> Operation<B> 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<P: Paragraph>(pub paragraph::Plain<P>); -impl<'a, Message, Theme, Renderer> Widget<Message, Theme, Renderer> - for Text<'a, Theme, Renderer> +impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> + for Text<'_, Theme, Renderer> where Theme: Catalog, Renderer: text::Renderer, |