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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ impl Sandbox for ScrollableDemo {
|
|||
.enumerate()
|
||||
.map(|(i, variant)| {
|
||||
let mut contents = column![
|
||||
variant.title.as_ref(),
|
||||
variant.title,
|
||||
button("Scroll to bottom",)
|
||||
.width(Length::Fill)
|
||||
.padding(10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue