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
|
|
@ -396,10 +396,10 @@ fn view_controls(tasks: &[Task], current_filter: Filter) -> Element<Message> {
|
|||
};
|
||||
|
||||
row![
|
||||
text(format!(
|
||||
text!(
|
||||
"{tasks_left} {} left",
|
||||
if tasks_left == 1 { "task" } else { "tasks" }
|
||||
))
|
||||
)
|
||||
.width(Length::Fill),
|
||||
row![
|
||||
filter_button("All", Filter::All, current_filter),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue