Add elided lifetimes to view helpers in examples

This commit is contained in:
Héctor Ramón Jiménez 2025-06-24 14:29:36 +02:00
parent bde4572bc5
commit 5ca5000cdc
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
50 changed files with 95 additions and 84 deletions

View file

@ -34,7 +34,7 @@ Now, let's show the actual counter by putting it all together in our __view logi
use iced::widget::{button, column, text, Column};
impl Counter {
pub fn view(&self) -> Column<Message> {
pub fn view(&self) -> Column<'_, Message> {
// We use a column: a simple vertical layout
column![
// The increment button. We tell it to produce an