refactor: replace text(format!( with text macro
This commit is contained in:
parent
6146382676
commit
bf9bbf4a3e
18 changed files with 41 additions and 41 deletions
|
|
@ -114,7 +114,7 @@ impl Example {
|
|||
fn view(&self) -> Element<Message> {
|
||||
let content = column![
|
||||
circle(self.radius),
|
||||
text(format!("Radius: {:.2}", self.radius)),
|
||||
text!("Radius: {:.2}", self.radius),
|
||||
slider(1.0..=100.0, self.radius, Message::RadiusChanged).step(0.01),
|
||||
]
|
||||
.padding(20)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue