Use ToString for Text::new instead of Into<String>
This commit is contained in:
parent
ff2519b1d4
commit
a1c5f8839d
5 changed files with 13 additions and 12 deletions
|
|
@ -94,7 +94,7 @@
|
|||
//! button("+").on_press(Message::IncrementPressed),
|
||||
//!
|
||||
//! // We show the value of the counter here
|
||||
//! text(self.value.to_string()).size(50),
|
||||
//! text(self.value).size(50),
|
||||
//!
|
||||
//! // The decrement button. We tell it to produce a
|
||||
//! button("-").on_press(Message::DecrementPressed),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue