diff options
author | 2024-03-18 17:08:56 -0300 | |
---|---|---|
committer | 2024-03-18 17:08:56 -0300 | |
commit | bf9bbf4a3edf22f21c79901999cc104cb29fccce (patch) | |
tree | 2a2b041471940c0fc1809e3db677a0a53758181c /examples/stopwatch | |
parent | 6146382676a7bff4764e86e99d0d053f5fbbc045 (diff) | |
download | iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.gz iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.bz2 iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.zip |
refactor: replace `text(format!(` with `text` macro
Diffstat (limited to 'examples/stopwatch')
-rw-r--r-- | examples/stopwatch/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs index b9eb19cf..6bd5ce3e 100644 --- a/examples/stopwatch/src/main.rs +++ b/examples/stopwatch/src/main.rs @@ -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| { |