Fix clippy lints
This commit is contained in:
parent
effa6881f7
commit
c512d50e19
4 changed files with 11 additions and 11 deletions
|
|
@ -217,6 +217,6 @@ impl From<reqwest::Error> for Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn button<'a>(text: &'a str) -> widget::Button<'a, Message> {
|
fn button(text: &str) -> widget::Button<'_, Message> {
|
||||||
widget::button(text).padding(10)
|
widget::button(text).padding(10)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ impl Sandbox for ScrollableDemo {
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(i, variant)| {
|
.map(|(i, variant)| {
|
||||||
let mut contents = column![
|
let mut contents = column![
|
||||||
variant.title.as_ref(),
|
variant.title,
|
||||||
button("Scroll to bottom",)
|
button("Scroll to bottom",)
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
.padding(10)
|
.padding(10)
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ where
|
||||||
shell: &mut Shell<'_, Message>,
|
shell: &mut Shell<'_, Message>,
|
||||||
) -> event::Status {
|
) -> event::Status {
|
||||||
self.container.on_event(
|
self.container.on_event(
|
||||||
&mut self.state,
|
self.state,
|
||||||
event,
|
event,
|
||||||
layout,
|
layout,
|
||||||
cursor_position,
|
cursor_position,
|
||||||
|
|
@ -270,7 +270,7 @@ where
|
||||||
renderer: &Renderer,
|
renderer: &Renderer,
|
||||||
) -> mouse::Interaction {
|
) -> mouse::Interaction {
|
||||||
self.container.mouse_interaction(
|
self.container.mouse_interaction(
|
||||||
&self.state,
|
self.state,
|
||||||
layout,
|
layout,
|
||||||
cursor_position,
|
cursor_position,
|
||||||
viewport,
|
viewport,
|
||||||
|
|
@ -303,7 +303,7 @@ where
|
||||||
);
|
);
|
||||||
|
|
||||||
self.container.draw(
|
self.container.draw(
|
||||||
&self.state,
|
self.state,
|
||||||
renderer,
|
renderer,
|
||||||
theme,
|
theme,
|
||||||
style,
|
style,
|
||||||
|
|
|
||||||
|
|
@ -47,18 +47,18 @@ where
|
||||||
/// Creates a new [`Column`] with the given children.
|
/// Creates a new [`Column`] with the given children.
|
||||||
///
|
///
|
||||||
/// [`Column`]: widget::Column
|
/// [`Column`]: widget::Column
|
||||||
pub fn column<'a, Message, Renderer>(
|
pub fn column<Message, Renderer>(
|
||||||
children: Vec<Element<'a, Message, Renderer>>,
|
children: Vec<Element<'_, Message, Renderer>>,
|
||||||
) -> widget::Row<'a, Message, Renderer> {
|
) -> widget::Row<'_, Message, Renderer> {
|
||||||
widget::Row::with_children(children)
|
widget::Row::with_children(children)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a new [`Row`] with the given children.
|
/// Creates a new [`Row`] with the given children.
|
||||||
///
|
///
|
||||||
/// [`Row`]: widget::Row
|
/// [`Row`]: widget::Row
|
||||||
pub fn row<'a, Message, Renderer>(
|
pub fn row<Message, Renderer>(
|
||||||
children: Vec<Element<'a, Message, Renderer>>,
|
children: Vec<Element<'_, Message, Renderer>>,
|
||||||
) -> widget::Row<'a, Message, Renderer> {
|
) -> widget::Row<'_, Message, Renderer> {
|
||||||
widget::Row::with_children(children)
|
widget::Row::with_children(children)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue