Add elided lifetimes to view helpers in examples
This commit is contained in:
parent
bde4572bc5
commit
5ca5000cdc
50 changed files with 95 additions and 84 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ impl Markdown {
|
|||
}
|
||||
}
|
||||
|
||||
fn view(&self) -> Element<Message> {
|
||||
fn view(&self) -> Element<'_, Message> {
|
||||
let editor = text_editor(&self.raw)
|
||||
.placeholder("Type your Markdown here...")
|
||||
.on_action(Message::Edit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue