diff options
Diffstat (limited to 'examples/clock/src/main.rs')
-rw-r--r-- | examples/clock/src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index 827379fa..2407db65 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -59,10 +59,9 @@ impl Application for Clock { } fn view(&mut self) -> Element<Message> { - let canvas = Canvas::new() + let canvas = Canvas::new(&mut self.clock, &self.now) .width(Length::Units(400)) - .height(Length::Units(400)) - .push(self.clock.with(&self.now)); + .height(Length::Units(400)); Container::new(canvas) .width(Length::Fill) |