From 81096ef454a9aacacf3853f7dfe96b8b9228f200 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 14 Apr 2020 06:38:06 +0200 Subject: Implement `From` for `canvas::Fill` --- examples/clock/src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/clock/src/main.rs') diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index a85a964c..1379d3a6 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -101,10 +101,7 @@ impl canvas::Drawable for LocalTime { let clock = canvas::Path::new(|path| path.circle(center, radius)); - frame.fill( - &clock, - canvas::Fill::Color(Color::from_rgb8(0x12, 0x93, 0xD8)), - ); + frame.fill(&clock, Color::from_rgb8(0x12, 0x93, 0xD8)); fn draw_hand( n: u32, -- cgit