From 9dc9305d93b9c03d5ea309ecce148857f9bb0745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 12 Feb 2020 22:10:00 +0100 Subject: [PATCH] Remove redundant conversion in `clock` example --- examples/clock/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> 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| {