refactor: replace text(format!( with text macro

This commit is contained in:
Richard Custodio 2024-03-18 17:08:56 -03:00
parent 6146382676
commit bf9bbf4a3e
No known key found for this signature in database
GPG key ID: 95F51F46E2C6E8D7
18 changed files with 41 additions and 41 deletions

View file

@ -92,13 +92,13 @@ impl Stopwatch {
let seconds = self.duration.as_secs();
let duration = text(format!(
let duration = text!(
"{:0>2}:{:0>2}:{:0>2}.{:0>2}",
seconds / HOUR,
(seconds % HOUR) / MINUTE,
seconds % MINUTE,
self.duration.subsec_millis() / 10,
))
)
.size(40);
let button = |label| {