summaryrefslogtreecommitdiffstats
path: root/examples/the_matrix/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/the_matrix/src/main.rs')
-rw-r--r--examples/the_matrix/src/main.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/the_matrix/src/main.rs b/examples/the_matrix/src/main.rs
index 2ae1cc3a..0ed52dda 100644
--- a/examples/the_matrix/src/main.rs
+++ b/examples/the_matrix/src/main.rs
@@ -2,8 +2,7 @@ use iced::mouse;
use iced::time::{self, Instant};
use iced::widget::canvas;
use iced::{
- Color, Element, Font, Length, Point, Rectangle, Renderer, Subscription,
- Theme,
+ Color, Element, Fill, Font, Point, Rectangle, Renderer, Subscription, Theme,
};
use std::cell::RefCell;
@@ -37,10 +36,7 @@ impl TheMatrix {
}
fn view(&self) -> Element<Message> {
- canvas(self as &Self)
- .width(Length::Fill)
- .height(Length::Fill)
- .into()
+ canvas(self as &Self).width(Fill).height(Fill).into()
}
fn subscription(&self) -> Subscription<Message> {