diff options
author | 2024-04-30 08:10:22 +0200 | |
---|---|---|
committer | 2024-04-30 08:10:22 +0200 | |
commit | cfe4ddb86620f9b21027c8a828e80df9a8887407 (patch) | |
tree | ac9854fef876126bdbfe5fbf6444e6bf73a9dd89 /examples/the_matrix | |
parent | 3c7b43d031a06d59afbba83bc9d088517c096f20 (diff) | |
download | iced-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.rs | 7 |
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>>; |