summaryrefslogtreecommitdiffstats
path: root/examples/the_matrix
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-30 08:10:22 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-30 08:10:22 +0200
commitcfe4ddb86620f9b21027c8a828e80df9a8887407 (patch)
treeac9854fef876126bdbfe5fbf6444e6bf73a9dd89 /examples/the_matrix
parent3c7b43d031a06d59afbba83bc9d088517c096f20 (diff)
downloadiced-cfe4ddb86620f9b21027c8a828e80df9a8887407.tar.gz
iced-cfe4ddb86620f9b21027c8a828e80df9a8887407.tar.bz2
iced-cfe4ddb86620f9b21027c8a828e80df9a8887407.zip
Fix `clippy` lint in `the_matrix` example
Diffstat (limited to 'examples/the_matrix')
-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>>;