Simplify lifetime in toast example

This commit is contained in:
Héctor Ramón Jiménez 2024-03-17 18:47:07 +01:00
parent 32e1b2c5fc
commit 92f8dddc2c
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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)
};