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
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue