From dc0e423142f053c59c326d92920e7829b6852cca Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 10 Jul 2020 02:01:30 +0200 Subject: Remove unnecessary lifetime in `Widget` trait --- native/src/widget.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'native/src/widget.rs') diff --git a/native/src/widget.rs b/native/src/widget.rs index 11952018..a7f279ed 100644 --- a/native/src/widget.rs +++ b/native/src/widget.rs @@ -97,7 +97,7 @@ use crate::{layout, overlay, Clipboard, Event, Hasher, Layout, Length, Point}; /// [`geometry`]: https://github.com/hecrj/iced/tree/0.1/examples/geometry /// [`lyon`]: https://github.com/nical/lyon /// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.1/wgpu -pub trait Widget<'a, Message, Renderer> +pub trait Widget where Renderer: crate::Renderer, { @@ -179,10 +179,10 @@ where ) { } - fn overlay<'b>( - &'b mut self, + fn overlay( + &mut self, _layout: Layout<'_>, - ) -> Option> { + ) -> Option> { None } } -- cgit