diff options
author | 2024-03-18 17:08:56 -0300 | |
---|---|---|
committer | 2024-03-18 17:08:56 -0300 | |
commit | bf9bbf4a3edf22f21c79901999cc104cb29fccce (patch) | |
tree | 2a2b041471940c0fc1809e3db677a0a53758181c /examples/loading_spinners | |
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/loading_spinners')
-rw-r--r-- | examples/loading_spinners/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/loading_spinners/src/main.rs b/examples/loading_spinners/src/main.rs index eaa4d57e..2b2abad5 100644 --- a/examples/loading_spinners/src/main.rs +++ b/examples/loading_spinners/src/main.rs @@ -81,7 +81,7 @@ impl LoadingSpinners { Message::CycleDurationChanged(x / 100.0) }) .width(200.0), - text(format!("{:.2}s", self.cycle_duration)), + text!("{:.2}s", self.cycle_duration), ] .align_items(iced::Alignment::Center) .spacing(20.0), |