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
|
|
@ -48,7 +48,7 @@ impl VectorialText {
|
|||
self.state.cache.clear();
|
||||
}
|
||||
|
||||
fn view(&self) -> Element<Message> {
|
||||
fn view(&self) -> Element<'_, Message> {
|
||||
let slider_with_label = |label, range, value, message: fn(f32) -> _| {
|
||||
column![
|
||||
row![text(label), horizontal_space(), text!("{:.2}", value)],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue