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.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/the_matrix/src/main.rs b/examples/the_matrix/src/main.rs
index 97ad31b9..4ed1db32 100644
--- a/examples/the_matrix/src/main.rs
+++ b/examples/the_matrix/src/main.rs
@@ -15,6 +15,7 @@ pub fn main() -> iced::Result {
.run()
}
+#[derive(Default)]
struct TheMatrix {
tick: usize,
}
@@ -45,12 +46,6 @@ impl TheMatrix {
}
}
-impl Default for TheMatrix {
- fn default() -> Self {
- Self { tick: 0 }
- }
-}
-
impl<Message> canvas::Program<Message> for TheMatrix {
type State = RefCell<Vec<canvas::Cache>>;