From bf9bbf4a3edf22f21c79901999cc104cb29fccce Mon Sep 17 00:00:00 2001 From: Richard Custodio Date: Mon, 18 Mar 2024 17:08:56 -0300 Subject: refactor: replace `text(format!(` with `text` macro --- examples/todos/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/todos/src/main.rs') diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 7768c1d5..f5fb94c9 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -396,10 +396,10 @@ fn view_controls(tasks: &[Task], current_filter: Filter) -> Element { }; 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), -- cgit