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
|
|
@ -163,7 +163,7 @@ fn view_controls<'a>(
|
|||
|
||||
let speed_controls = row![
|
||||
slider(1.0..=1000.0, speed as f32, Message::SpeedChanged),
|
||||
text(format!("x{speed}")).size(16),
|
||||
text!("x{speed}").size(16),
|
||||
]
|
||||
.align_items(Alignment::Center)
|
||||
.spacing(10);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue