Fix further clippy lints

... and explicitly annotate crates as well.
This commit is contained in:
Héctor Ramón Jiménez 2022-07-09 18:03:59 +02:00
parent 33a24b5821
commit 2f76a10a1d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
33 changed files with 197 additions and 85 deletions

View file

@ -38,7 +38,7 @@ pub trait Component<Message, Renderer> {
/// Produces the widgets of the [`Component`], which may trigger an [`Event`](Component::Event)
/// on user interaction.
fn view(&mut self) -> Element<Self::Event, Renderer>;
fn view(&mut self) -> Element<'_, Self::Event, Renderer>;
}
/// Turns an implementor of [`Component`] into an [`Element`] that can be
@ -350,7 +350,7 @@ where
layout: Layout<'_>,
cursor_position: Point,
) {
self.with_overlay_maybe(|overlay| {
let _ = self.with_overlay_maybe(|overlay| {
overlay.draw(renderer, theme, style, layout, cursor_position);
});
}