Simplify lifetime in toast example
This commit is contained in:
parent
32e1b2c5fc
commit
92f8dddc2c
1 changed files with 2 additions and 2 deletions
|
|
@ -92,8 +92,8 @@ impl App {
|
|||
}
|
||||
}
|
||||
|
||||
fn view<'a>(&'a self) -> Element<'a, Message> {
|
||||
let subtitle = |title, content: Element<'a, Message>| {
|
||||
fn view(&self) -> Element<'_, Message> {
|
||||
let subtitle = |title, content: Element<'static, Message>| {
|
||||
column![text(title).size(14), content].spacing(5)
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue