Fix: Clippy lint 'needless_lifetimes'
This commit is contained in:
parent
0ff1061d52
commit
e6092e81a4
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue