summaryrefslogtreecommitdiffstats
path: root/examples/clock
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-12 22:10:00 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-12 22:10:00 +0100
commit9dc9305d93b9c03d5ea309ecce148857f9bb0745 (patch)
treedd4683716b399b0a09451ca00ae52e6d9ca8144f /examples/clock
parent265c08661ca7943473c2ef305246a75bfc7847ff (diff)
downloadiced-9dc9305d93b9c03d5ea309ecce148857f9bb0745.tar.gz
iced-9dc9305d93b9c03d5ea309ecce148857f9bb0745.tar.bz2
iced-9dc9305d93b9c03d5ea309ecce148857f9bb0745.zip
Remove redundant conversion in `clock` example
Diffstat (limited to 'examples/clock')
-rw-r--r--examples/clock/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index 25849d1a..8259e382 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -92,7 +92,7 @@ impl From<chrono::DateTime<chrono::Local>> for LocalTime {
impl canvas::layer::Drawable for LocalTime {
fn draw(&self, frame: &mut canvas::Frame) {
let center = frame.center();
- let radius = frame.width().min(frame.height()) as f32 / 2.0;
+ let radius = frame.width().min(frame.height()) / 2.0;
let offset = Vector::new(center.x, center.y);
let path = canvas::Path::new(|path| {