Fix: Clippy lint 'needless_lifetimes'

This commit is contained in:
13r0ck 2023-01-27 13:37:32 -07:00
parent 0ff1061d52
commit e6092e81a4
2 changed files with 4 additions and 4 deletions

View file

@ -53,9 +53,9 @@ where
{ {
type Theme = T; type Theme = T;
fn layout<'a, Message>( fn layout<Message>(
&mut self, &mut self,
element: &Element<'a, Message, Self>, element: &Element<'_, Message, Self>,
limits: &layout::Limits, limits: &layout::Limits,
) -> layout::Node { ) -> layout::Node {
let layout = element.as_widget().layout(self, limits); let layout = element.as_widget().layout(self, limits);

View file

@ -16,9 +16,9 @@ pub trait Renderer: Sized {
/// ///
/// You should override this if you need to perform any operations before or /// You should override this if you need to perform any operations before or
/// after layouting. For instance, trimming the measurements cache. /// after layouting. For instance, trimming the measurements cache.
fn layout<'a, Message>( fn layout<Message>(
&mut self, &mut self,
element: &Element<'a, Message, Self>, element: &Element<'_, Message, Self>,
limits: &layout::Limits, limits: &layout::Limits,
) -> layout::Node { ) -> layout::Node {
element.as_widget().layout(self, limits) element.as_widget().layout(self, limits)