Add 0 suffix to float literals for consistency
This commit is contained in:
parent
08da96c1c6
commit
92e148822f
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue