diff options
author | 2020-04-02 01:00:39 +0200 | |
---|---|---|
committer | 2020-04-02 01:00:39 +0200 | |
commit | 92e148822fd4b8a5824d0e99974cf18971061270 (patch) | |
tree | f08f1861753a9e32630042754be73573bf021a85 /examples/clock | |
parent | 08da96c1c6f52ec35fb8844d93bd2b5582c9abb8 (diff) | |
download | iced-92e148822fd4b8a5824d0e99974cf18971061270.tar.gz iced-92e148822fd4b8a5824d0e99974cf18971061270.tar.bz2 iced-92e148822fd4b8a5824d0e99974cf18971061270.zip |
Add `0` suffix to float literals for consistency
Diffstat (limited to 'examples/clock')
-rw-r--r-- | examples/clock/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index 66c311b5..88f8322c 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -133,7 +133,7 @@ impl canvas::Drawable for LocalTime { frame.stroke( &hour_and_minute_hands, canvas::Stroke { - width: radius / 100. * 3., + width: radius / 100.0 * 3.0, color: Color::WHITE, line_cap: canvas::LineCap::Round, ..canvas::Stroke::default() @@ -148,7 +148,7 @@ impl canvas::Drawable for LocalTime { frame.stroke( &second_hand, canvas::Stroke { - width: radius / 100., + width: radius / 100.0, color: Color::WHITE, line_cap: canvas::LineCap::Round, ..canvas::Stroke::default() |